llvm-project/llgo/test/execution/branching/labeled.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
225 B
Go
Raw Normal View History

// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s
// CHECK: 0
package main
func labeledBreak() {
var i int
L:
for ; i < 10; i++ {
switch {
default:
break L
}
}
println(i)
}
func main() {
labeledBreak()
}