mirror of
https://github.com/golang/go
synced 2024-11-22 00:34:40 -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:
parent
9db2bc741e
commit
237ae64146
@ -24,6 +24,7 @@ func main() {
|
|||||||
case 1:
|
case 1:
|
||||||
L1: // ERROR "statement"
|
L1: // ERROR "statement"
|
||||||
default:
|
default:
|
||||||
L2: // correct since no semicolon is required before a '}'
|
// correct since no semicolon is required before a '}'
|
||||||
|
L2: // GCCGO_ERROR "not used"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user