1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/fixtures/go/label-statements.A.go

15 lines
244 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
2017-11-21 07:23:10 +03:00
L: ; // ';' terminates empty statement => L does not apply to for loop
L1: { // L1 labels block => L1 does not apply to for loop
for i := 0; i < 10; i++ {
println(i);
break L1; // comment
}
2017-02-23 21:06:49 +03:00
}
2017-11-21 21:33:25 +03:00
{
insert:
}
2017-02-23 21:06:49 +03:00
}