Home | History | Annotate | Download | only in fixedbugs
      1 // compile
      2 
      3 // Copyright 2017 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 // Used to crash when compiling functions containing
      8 // forward refs in dead code.
      9 
     10 package p
     11 
     12 var f func(int)
     13 
     14 func g() {
     15 l1:
     16 	i := 0
     17 	goto l1
     18 l2:
     19 	f(i)
     20 	goto l2
     21 }
     22