summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorandrewc <andrew_chambers@trimble.com>2016-01-19 16:23:05 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-01-19 21:09:43 +1300
commit49fa88c18b94c425e6f86beacbf8752f7564b7f3 (patch)
tree1fe11fb69e6a8a929237b28c549892d4d77596e3 /test
parent220d3dfdc7f4c5ae8967a03194bbae868c9f8ac8 (diff)
downloadmc-49fa88c18b94c425e6f86beacbf8752f7564b7f3.tar.gz
fix #51, loops without cond stmts
Diffstat (limited to 'test')
-rw-r--r--test/fornocond.myr14
-rw-r--r--test/tests1
2 files changed, 15 insertions, 0 deletions
diff --git a/test/fornocond.myr b/test/fornocond.myr
new file mode 100644
index 0000000..7c43d38
--- /dev/null
+++ b/test/fornocond.myr
@@ -0,0 +1,14 @@
+use std
+
+const main = {
+ var i
+
+ for i = 0; ; i++
+ if i == 10
+ break;
+ ;;
+ ;;
+ if i == 10
+ std.put("pass\n")
+ ;;
+}
diff --git a/test/tests b/test/tests
index 3a69408..3594238 100644
--- a/test/tests
+++ b/test/tests
@@ -149,3 +149,4 @@ F aritylow
F arityhigh
F badop
B voideffect P pass
+B fornocond P pass