Debian Codegraph @

examples/ctrl/ctrl_break_nested.ck

raw
1 // break in nested block
2
3 0 => int j;
4 0 => int i;
5
6 // loop
7 while ( j < 5 )
8 {
9 while ( i < 10 )
10 {
11 1 +=> i;
12 // arbitrary break here, shouldn't bust of out the outer loop
13 if ( i > 5 ) break;
14 }
15
16 1 +=> j;
17 }
18
19 // test
20 if ( j == 5 ) <<<"success">>>;