shithub: mc

ref: 10b54e590ef8bfd54c5dc9712d0864db4be4e1ce
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
}