aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/auto/simple_continue.sy
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/auto/simple_continue.sy')
-rw-r--r--progs/tests/auto/simple_continue.sy12
1 files changed, 12 insertions, 0 deletions
diff --git a/progs/tests/auto/simple_continue.sy b/progs/tests/auto/simple_continue.sy
new file mode 100644
index 0000000..ac2bf81
--- /dev/null
+++ b/progs/tests/auto/simple_continue.sy
@@ -0,0 +1,12 @@
+start :: fn {
+
+a := 0
+for i := 0, i < 4, i += 1 {
+ if i == 2 {
+ continue
+ }
+ a = a + 1
+}
+a <=> 3
+
+}