diff options
Diffstat (limited to 'tests/simple_loop.qbt')
| -rw-r--r-- | tests/simple_loop.qbt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/simple_loop.qbt b/tests/simple_loop.qbt new file mode 100644 index 0000000..32e544f --- /dev/null +++ b/tests/simple_loop.qbt @@ -0,0 +1,13 @@ +main() +{ + i27 i = 0; + i27 max = 1000; + i27 sum = 0; + +top: + i27 sum = sum + i; + i27 i = i + 1; + i < max -> top; + &_putchar(sum) => (); + => (); +} |
