]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug274.go.
authorIan Lance Taylor <iant@golang.org>
Fri, 25 Mar 2011 18:32:32 +0000 (11:32 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Mar 2011 18:32:32 +0000 (11:32 -0700)
bug274.go:23:3: error: missing statement after label
bug274.go:25:3: error: missing statement after label
bug274.go:28:3: error: label ‘L2’ defined and not used

R=rsc
CC=golang-dev
https://golang.org/cl/4273114

test/fixedbugs/bug274.go

index 621f31eed37f309785f985b44a7ad94a90228b19..348aed429e91c40ac33e5f9d043effd8b8b7092f 100644 (file)
@@ -24,6 +24,7 @@ func main() {
        case 1:
                L1:  // ERROR "statement"
        default:
-               L2:  // correct since no semicolon is required before a '}'
+                    // correct since no semicolon is required before a '}'
+               L2:  // GCCGO_ERROR "not used"
        }
 }