From 1103d78c84d9654035c2b43aeb01cd5a71c539de Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 6 Feb 2009 15:57:02 -0800 Subject: [PATCH] Recognize gccgo error messages: func4.go:8:11: error: invalid operand for unary '&' func4.go:9:8: error: invalid left hand side of assignment R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=24294 CL=24603 --- test/func4.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/func4.go b/test/func4.go index 843e6d341b..f9e394fdf7 100644 --- a/test/func4.go +++ b/test/func4.go @@ -9,6 +9,6 @@ package main var notmain func() func main() { - var x = &main; // ERROR "address of function" - main = notmain; // ERROR "assign to function" + var x = &main; // ERROR "address of function|invalid" + main = notmain; // ERROR "assign to function|invalid" }