Home | History | Annotate | Download | only in fixedbugs
      1 // compile
      2 
      3 // Copyright 2016 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 // The compiler used the name "glob" as the function holding a global
      8 // function literal, colliding with an actual function named "glob".
      9 
     10 package main
     11 
     12 func glob() {
     13 	func() {
     14 	}()
     15 }
     16 
     17 var c1 = func() {
     18 }
     19 
     20 var c2 = func() {
     21 }
     22 
     23 func main() {
     24 	glob()
     25 	c1()
     26 	c2()
     27 }
     28