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 | e492f8dbe0d8f1f65763d705c90295afea66e5e0 (patch) | |
tree | 4aadc645363f0215063724d5391954968aacded3 /test/varerr.go | |
parent | a991eb166c9f661293d15a5f51d9896efae3921c (diff) | |
download | go-e492f8dbe0d8f1f65763d705c90295afea66e5e0.tar.gz |
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
http://codereview.appspot.com/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 32f33ecc7..ddd718f5b 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" } |