diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 20:48:27 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 21:07:11 +0300 |
| commit | 4af5176d6377958a457da3e5f671ce21540fad70 (patch) | |
| tree | 04e7f2fe66e7c2e05f6a47b0c8108cf407ee6c93 /tests/simple_loop | |
| parent | cdbe058f69f1db9c552e1b4a1ec5f94c12fc48a2 (diff) | |
| download | qbt-4af5176d6377958a457da3e5f671ce21540fad70.tar.gz qbt-4af5176d6377958a457da3e5f671ce21540fad70.zip | |
add tests and fixes on top of 674438
Diffstat (limited to 'tests/simple_loop')
| -rw-r--r-- | tests/simple_loop/simple_loop.qbt | 13 | ||||
| -rw-r--r-- | tests/simple_loop/source.mk | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/simple_loop/simple_loop.qbt b/tests/simple_loop/simple_loop.qbt new file mode 100644 index 0000000..32e544f --- /dev/null +++ b/tests/simple_loop/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) => (); + => (); +} diff --git a/tests/simple_loop/source.mk b/tests/simple_loop/source.mk new file mode 100644 index 0000000..4ec9398 --- /dev/null +++ b/tests/simple_loop/source.mk @@ -0,0 +1 @@ +SIMPLE += simple_loop |
