mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
[dev.ssa] test: gofmt {goto,label,label1}.go
Change-Id: I971d0c93632e39aad4e2ba1862f085df820baf8b Reviewed-on: https://go-review.googlesource.com/12431 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
f421735bb4
commit
ffbf209a7c
|
@ -17,8 +17,7 @@ L1: // ERROR "label .*L1.* defined and not used"
|
|||
for {
|
||||
}
|
||||
L2: // ERROR "label .*L2.* defined and not used"
|
||||
select {
|
||||
}
|
||||
select {}
|
||||
L3: // ERROR "label .*L3.* defined and not used"
|
||||
switch {
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
|
||||
// Verify that erroneous labels are caught by the compiler.
|
||||
// This set is caught by pass 2. That's why this file is label1.go.
|
||||
// Does not compile.
|
||||
|
|
Loading…
Reference in a new issue