1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -07:00

test: match gccgo error messages for bug330.go.

bug330.go:11:6: error: expected numeric type
bug330.go:12:6: error: expected numeric type

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5031050
This commit is contained in:
Ian Lance Taylor 2011-09-16 18:28:57 -07:00
parent ae4f1c4c3a
commit bfe9f228a4

View File

@ -8,6 +8,6 @@ package main
func main() {
x := ""
x = +"hello" // ERROR "invalid operation.*string"
x = +x // ERROR "invalid operation.*string"
x = +"hello" // ERROR "invalid operation.*string|expected numeric"
x = +x // ERROR "invalid operation.*string|expected numeric"
}