shithub: mc

ref: 714a85cedc8eea6c4c4d95c074160e0a2ca9e477
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
	std.exit(sl.len)
}