diff options
author | andrewc <andrew_chambers@trimble.com> | 2016-01-19 16:23:05 +1300 |
---|---|---|
committer | Andrew Chambers <andrewchamberss@gmail.com> | 2016-01-19 21:09:43 +1300 |
commit | 49fa88c18b94c425e6f86beacbf8752f7564b7f3 (patch) | |
tree | 1fe11fb69e6a8a929237b28c549892d4d77596e3 /test | |
parent | 220d3dfdc7f4c5ae8967a03194bbae868c9f8ac8 (diff) | |
download | mc-49fa88c18b94c425e6f86beacbf8752f7564b7f3.tar.gz |
fix #51, loops without cond stmts
Diffstat (limited to 'test')
-rw-r--r-- | test/fornocond.myr | 14 | ||||
-rw-r--r-- | test/tests | 1 |
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") + ;; +} @@ -149,3 +149,4 @@ F aritylow F arityhigh F badop B voideffect P pass +B fornocond P pass |