LSL-PyOptimizer/unit_tests/regression.suite/jump-single-stmt-dcr.lsl
Sei Lisa 1867dc78e7 Add the new test suite.
This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations.

See unit_tests/README.txt for more info.
2019-01-04 20:27:36 +01:00

19 lines
311 B
Text

// Jump to infinite loop in same scope
default{timer(){
jump a1;
while (0) @a1;
jump a2;
for (;0;) @a2;
jump a3;
for (llDie();0;) @a3;
jump a4;
for (;0;llDie()) @a4;
jump b1;
while (1) @b1;
jump b2;
for (;1;) @b2;
jump b3;
for (llDie();1;) @b3;
jump b4;
for (;1;llDie()) @b4;
}}