/usr/share/doc/chuck/examples/ctrl/ctrl_continue.ck is in chuck 1.2.0.8.dfsg-1.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | // continue in nested block
0 => int j;
0 => int i;
0 => int check;
// loop
while ( j < 5 )
{
0 => i;
while ( i < 5 )
{
1 +=> i;
if ( j < 4 ) continue;
// because of continue, this only happens in last ( j==0 )
2 +=> check;
}
// if continue malfunctions, this is skipped, and we get INFINITE LOOP
1 +=> j;
}
// make sure that continue does the right thing in the inner loop?
if ( check == 10 ) <<<"success">>>;
|