summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-12-03 20:29:59 -0500
committerOri Bernstein <ori@eigenstate.org>2012-12-03 20:29:59 -0500
commitc0192155d8e843ab3355a564ed97537d0ede00a6 (patch)
tree51adbe4c4033d36fd5b72b308aeb051e22935817 /test
parentbf99f35f97bc7593237df154f7ae19c16f3e215c (diff)
downloadmc-c0192155d8e843ab3355a564ed97537d0ede00a6.tar.gz
Add new test, disable broken one.
- catfile loops infinitely. I need to fix this. - slalloc is a useful test.
Diffstat (limited to 'test')
-rw-r--r--test/slalloc.myr8
-rw-r--r--test/tests3
2 files changed, 10 insertions, 1 deletions
diff --git a/test/slalloc.myr b/test/slalloc.myr
new file mode 100644
index 0000000..1a6b13a
--- /dev/null
+++ b/test/slalloc.myr
@@ -0,0 +1,8 @@
+use std
+
+const main = {
+ var sl : int[:]
+
+ sl = std.slalloc(123)
+ -> sl.len
+}
diff --git a/test/tests b/test/tests
index 36b4173..56a84eb 100644
--- a/test/tests
+++ b/test/tests
@@ -32,6 +32,7 @@ B structptr E 42
B structasn E 42
B structarray E 42
B structret E 42
+B slalloc E 123
B neststruct E 3
B array E 7
B arrayaddr E 42
@@ -73,7 +74,7 @@ B structlit E 42
B tuple E 42
B tyrec E 42
B helloworld P Hello-世界
-B catfile P Hello-世界
+#B catfile P Hello-世界
B encodechar P 1世界äa
F declmismatch
F infermismatch