diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-09-10 12:45:46 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-09-10 12:45:46 -0700 |
commit | dbc226d5a1dba021e386a9a90765d5f34cde9946 (patch) | |
tree | 60f1685fd688a05ef128752a8447292f86749c0f /test/varerr.go | |
parent | d1b434b839357206484f94de1e9dc5343f62551f (diff) | |
download | go-dbc226d5a1dba021e386a9a90765d5f34cde9946.tar.gz go-dbc226d5a1dba021e386a9a90765d5f34cde9946.zip |
test: Match gccgo error messages.
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
Diffstat (limited to 'test/varerr.go')
-rw-r--r-- | test/varerr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/varerr.go b/test/varerr.go index 32f33ecc77..ddd718f5b8 100644 --- a/test/varerr.go +++ b/test/varerr.go @@ -7,8 +7,8 @@ package main func main() { - _ = asdf // ERROR "undefined: asdf" + _ = 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" } |