From dbc226d5a1dba021e386a9a90765d5f34cde9946 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 10 Sep 2010 12:45:46 -0700 Subject: [PATCH] test: Match gccgo error messages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 4 ++-- 1 file 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" }