]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug330.go.
authorIan Lance Taylor <iant@golang.org>
Sat, 17 Sep 2011 01:28:57 +0000 (18:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 17 Sep 2011 01:28:57 +0000 (18:28 -0700)
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

test/fixedbugs/bug330.go

index cf1d6cc2d73caef58a87156bbfbc404688929532..114492aff80ad182885bb951a4ff76fab813815a 100644 (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"
 }