shithub: mc

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