1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:57:58 -07:00

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
This commit is contained in:
Ian Lance Taylor 2009-02-06 15:57:02 -08:00
parent 9acd2a9731
commit 1103d78c84

View File

@ -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"
}