shithub: mc

ref: e1bc2dfb1c4a93d4d6def1a2a24a08165040a4b8
dir: /test/slalloc.myr/

View raw version
/* test the allocation of slices. should return 123 */
use std

const main = {
	var sl : int[:]

	sl = std.slalloc(123)
	sl[0] = 42
	sl[122] = 1
	-> sl.len
}