1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

test: match gccgo error messages for bug274.go.

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
This commit is contained in:
Ian Lance Taylor 2011-03-25 11:32:32 -07:00
parent 9db2bc741e
commit 237ae64146

View 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"
}
}