shithub: mc

ref: 3d20a6d5e0c554e9f3d0d3f504f4dfb28901ebb7
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
}