1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/fixtures/go/corpus/for-statements.A.go

35 lines
301 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
for {
a()
goto loop
}
for i := 0; i < 5; i++ {
a()
break loop
}
for ; i < 10; i++ {
a()
continue loop2
}
for ;; {
a()
continue
}
for x := range y {
a(x)
break
}
for i, s := range a {
g(i, s)
}
for key, val = range m {
h(key, val)
}
2017-11-10 02:41:55 +03:00
for 1 < 2 {
i()
}
for range ch {}
2017-02-23 21:06:49 +03:00
}