about summary refs log tree commit diff
path: root/boot/tests/transpile/loops.cskt
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-24 20:14:29 +0200
committerMel <mel@rnrd.eu>2026-05-24 20:14:29 +0200
commit2a893246711442dd8407264c05991b44d1d1f66f (patch)
treea0d4a621994ebb259331b7082a977e4ae2861bde /boot/tests/transpile/loops.cskt
parentf028bc7ef3101facfa004c21f3aa5feb3dc6f107 (diff)
downloadcatskill-2a893246711442dd8407264c05991b44d1d1f66f.tar.zst
catskill-2a893246711442dd8407264c05991b44d1d1f66f.zip
Emit IR/C increment/decrement in expression position
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/tests/transpile/loops.cskt')
-rw-r--r--boot/tests/transpile/loops.cskt4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/tests/transpile/loops.cskt b/boot/tests/transpile/loops.cskt
index d6493d9..7121538 100644
--- a/boot/tests/transpile/loops.cskt
+++ b/boot/tests/transpile/loops.cskt
@@ -23,13 +23,13 @@ void catskill_main(void);
 void catskill_main(void) {
     integer i = 0;
     while (i < 10) {
-        i = i + 1;
+        i++;
     }
     {
         integer j = 0;
         while (j < 5) {
             integer k = j;
-            j = j + 1;
+            j++;
         }
     }
     {