Source file test/fixedbugs/issue45948.go
1 // compile -N 2 3 // Copyright 2021 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 // Issue 45948: assert in debug generation for degenerate 8 // function with infinite loop. 9 10 package p 11 12 func f(p int) { 13 L: 14 goto L 15 16 } 17