diff options
Diffstat (limited to 'progs/tests/auto/simple_break.sy')
| -rw-r--r-- | progs/tests/auto/simple_break.sy | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/progs/tests/auto/simple_break.sy b/progs/tests/auto/simple_break.sy new file mode 100644 index 0000000..11c06ad --- /dev/null +++ b/progs/tests/auto/simple_break.sy @@ -0,0 +1,12 @@ +start :: fn { + +a := 0 +for i := 0, i < 10, i += 1 { + a = a + 1 + if i == 2 { + break + } +} +a <=> 3 + +} |
