Debian Codegraph @

testing/auto/breakcontinuereturn.a

raw
1
2 !for @n in [2, 3] {
3 !if @n == 3 {
4 !error "!break does not leave the loop"
5 }
6 !if 1 {
7 !break
8 }
9 !error "!break is ignored"
10 }
11 !for @n in [2, 3] {
12 !if 1 {
13 !continue
14 }
15 !error "!continue does not skip the remainder of the block"
16 }
17 !macro testmacro {
18 !for @n in [2, 3] {
19 !if 1 {
20 !return
21 }
22 !error "!return does not leave the block"
23 }
24 !error "!return does not leave all blocks"
25 }
26 +testmacro