summaryrefslogtreecommitdiff
path: root/test/slalloc.myr
blob: 21035e2955bc1f4fd8de8e0386e22871f642191a (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
	-> sl.len
}