]> Cypherpunks repositories - gostls13.git/commitdiff
test: Match gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 19:45:46 +0000 (12:45 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 19:45:46 +0000 (12:45 -0700)
gccgo does not handle 'new' specially here.

varerr.go:10:6: error: reference to undefined name ‘asdf’
varerr.go:12:6: error: invalid left hand side of assignment

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

test/varerr.go

index 32f33ecc770f8fdc048b5ef4d780a49fbadc0a7b..ddd718f5b8a1e2ddd48440ee69a9b6b661428209 100644 (file)
@@ -7,8 +7,8 @@
 package main
 
 func main() {
-       _ = asdf        // ERROR "undefinedasdf"
+       _ = asdf        // ERROR "undefined.*asdf"
 
-       new = 1 // ERROR "use of builtin new not in function call"
+       new = 1 // ERROR "use of builtin new not in function call|invalid left hand side"
 }