summaryrefslogtreecommitdiffstats
path: root/src/cmd/compile/internal/ssa/testdata/infloop.go
blob: cdb374fb577382c52ff5c963ed78c1930374a5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

var sink int

//go:noinline
func test() {
	// This is for #30167, incorrect line numbers in an infinite loop
	go func() {}()

	for {
	}
}

func main() {
	test()
}