summaryrefslogtreecommitdiff
path: root/test/func4.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-02-06 15:57:02 -0800
committerIan Lance Taylor <iant@golang.org>2009-02-06 15:57:02 -0800
commit19638d6ccc9dc77d3e079e3cb9bf3743331e3489 (patch)
treec28d7adf1aef358b7eb4e84c3e456f248bb2661d /test/func4.go
parentd47ed3d1ba1d05dddcd8686c796ca234f4306b4e (diff)
downloadgolang-19638d6ccc9dc77d3e079e3cb9bf3743331e3489.tar.gz
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
Diffstat (limited to 'test/func4.go')
-rw-r--r--test/func4.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/func4.go b/test/func4.go
index 843e6d341..f9e394fdf 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"
}