summaryrefslogtreecommitdiff
path: root/test/slalloc.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/slalloc.myr')
-rw-r--r--test/slalloc.myr3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/slalloc.myr b/test/slalloc.myr
index 1a6b13a..21035e2 100644
--- a/test/slalloc.myr
+++ b/test/slalloc.myr
@@ -1,8 +1,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
}