]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for init.go
authorIan Lance Taylor <iant@golang.org>
Sat, 26 Mar 2011 18:24:02 +0000 (11:24 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 26 Mar 2011 18:24:02 +0000 (11:24 -0700)
init.go:16:10: error: invalid reference to unexported identifier ‘runtime.init’
init.go:15:2: error: reference to undefined name ‘init’
init.go:17:10: error: reference to undefined name ‘init’

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4289074

test/init.go

index b6c8c970636e3939186605129e556cf87694b732..74c2d5c26146d0e393af8a828b75bd80d00a8695 100644 (file)
@@ -12,7 +12,7 @@ func init() {
 }
 
 func main() {
-       init()         // ERROR "undefinedinit"
+       init()         // ERROR "undefined.*init"
        runtime.init() // ERROR "unexported.*runtime\.init"
-       var _ = init   // ERROR "undefinedinit"
+       var _ = init   // ERROR "undefined.*init"
 }