summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/99_bugs/26_compiler_jmp_to_zero
blob: e7e0127934eacbf14e01d3391265674dbea76592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 --