summaryrefslogtreecommitdiff
path: root/test/init.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2011-03-26 11:24:02 -0700
committerIan Lance Taylor <iant@golang.org>2011-03-26 11:24:02 -0700
commit3cf2befb1fb016315e40f86eacbad9be17ec91b9 (patch)
tree1589d176f5752054df527d8d98538c3085b1ab32 /test/init.go
parentaaf2899dfebda8d19fdb265a6dbe6761653fd04a (diff)
downloadgo-3cf2befb1fb016315e40f86eacbad9be17ec91b9.tar.gz
test: match gccgo error messages for init.go
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 http://codereview.appspot.com/4289074
Diffstat (limited to 'test/init.go')
-rw-r--r--test/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/init.go b/test/init.go
index b6c8c9706..74c2d5c26 100644
--- a/test/init.go
+++ b/test/init.go
@@ -12,7 +12,7 @@ func init() {
}
func main() {
- init() // ERROR "undefined: init"
+ init() // ERROR "undefined.*init"
runtime.init() // ERROR "unexported.*runtime\.init"
- var _ = init // ERROR "undefined: init"
+ var _ = init // ERROR "undefined.*init"
}