Source file test/fixedbugs/issue7538a.go

     1  // errorcheck
     2  
     3  // Copyright 2014 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 7538: blank (_) labels handled incorrectly
     8  
     9  package p
    10  
    11  func f() {
    12  _:
    13  _:
    14  	goto _ // ERROR "not defined|undefined label"
    15  }
    16  

View as plain text