summaryrefslogtreecommitdiff
path: root/test/slalloc.myr
blob: c019ec31895446e2e0961d785a1b8a0b4039cfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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)
}