summaryrefslogtreecommitdiff
path: root/test/varerr.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-09-10 12:45:46 -0700
committerIan Lance Taylor <iant@golang.org>2010-09-10 12:45:46 -0700
commite492f8dbe0d8f1f65763d705c90295afea66e5e0 (patch)
tree4aadc645363f0215063724d5391954968aacded3 /test/varerr.go
parenta991eb166c9f661293d15a5f51d9896efae3921c (diff)
downloadgo-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.go4
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"
}