diff options
Diffstat (limited to 'tests/custom/99_bugs/26_compiler_jmp_to_zero')
-rw-r--r-- | tests/custom/99_bugs/26_compiler_jmp_to_zero | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/custom/99_bugs/26_compiler_jmp_to_zero b/tests/custom/99_bugs/26_compiler_jmp_to_zero new file mode 100644 index 0000000..e7e0127 --- /dev/null +++ b/tests/custom/99_bugs/26_compiler_jmp_to_zero @@ -0,0 +1,17 @@ +When compiling certain expressions as first statement of an ucode +program, e.g. a while loop in raw mode, a jump instruction to offset +zero is emitted which was incorrectly treated as placeholder by the +compiler. + +-- Testcase -- +while (i++ < 1) + print("Test\n"); +-- End -- + +-- Args -- +-R +-- End -- + +-- Expect stdout -- +Test +-- End -- |