Debian Codegraph @

_test/break2.go

raw symbols SCIP
1 package main
2
3 func main() {
4 n := 2
5 m := 2
6 foo := true
7 OuterLoop:
8 for i := 0; i < n; i++ {
9 println("I: ", i)
10 for j := 0; j < m; j++ {
11 switch foo {
12 case true:
13 println(foo)
14 break OuterLoop
15 case false:
16 println(foo)
17 continue OuterLoop
18 }
19 }
20 }
21 }
22
23 // Output:
24 // I: 0
25 // true