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.
28 lines
541 B
Plaintext
28 lines
541 B
Plaintext
//Sei's test break/continue
|
|
default
|
|
{
|
|
state_entry()
|
|
{
|
|
integer i = 0;
|
|
while (i < 10)
|
|
{
|
|
integer j = 0;
|
|
while (j < 10)
|
|
{
|
|
if (j == 5)
|
|
break 2;
|
|
if (j == 6)
|
|
continue 2;
|
|
if (j == 7)
|
|
break;
|
|
if (j == 8)
|
|
continue;
|
|
++j;
|
|
}
|
|
++i;
|
|
if (llFrand(5) < 3)
|
|
break;
|
|
}
|
|
}
|
|
}
|