Source file test/fixedbugs/issue13539.go

     1  // errorcheck
     2  
     3  // Copyright 2015 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  // Verify that a label named like a package is recognized
     8  // as a label rather than a package and that the package
     9  // remains unused.
    10  
    11  package main
    12  
    13  import "math" // ERROR "imported and not used"
    14  
    15  func main() {
    16  math:
    17  	for {
    18  		break math
    19  	}
    20  }
    21  

View as plain text