diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-09-10 12:44:37 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-09-10 12:44:37 -0700 |
commit | a991eb166c9f661293d15a5f51d9896efae3921c (patch) | |
tree | 1d268849b175b2e526a8e7c20f9d8e4c2038353d | |
parent | af92fa12bde13361cb0e3e953eaf4a249d442cf6 (diff) | |
download | go-a991eb166c9f661293d15a5f51d9896efae3921c.tar.gz |
test: Match gccgo error messages.
undef.go:12:6: error: reference to undefined name ?x?
undef.go:13:6: error: reference to undefined name ?x?
undef.go:14:6: error: reference to undefined name ?x?
undef.go:22:25: error: reference to undefined name ?y?
undef.go:42:11: error: reference to undefined name ?v?
R=rsc
CC=golang-dev
http://codereview.appspot.com/2152045
-rw-r--r-- | test/undef.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/undef.go b/test/undef.go index 70785675a..7ef07882a 100644 --- a/test/undef.go +++ b/test/undef.go @@ -9,9 +9,9 @@ package main var ( - _ = x // ERROR "undefined: x" - _ = x // ERROR "undefined: x" - _ = x // ERROR "undefined: x" + _ = x // ERROR "undefined.*x" + _ = x // ERROR "undefined.*x" + _ = x // ERROR "undefined.*x" ) type T struct { @@ -19,7 +19,7 @@ type T struct { } func foo() *T { return &T{y: 99} } -func bar() int { return y } // ERROR "undefined: y" +func bar() int { return y } // ERROR "undefined.*y" type T1 struct { y1 int @@ -39,6 +39,6 @@ func f1(val interface{}) { func f2(val interface{}) { switch val.(type) { default: - println(v) // ERROR "undefined: v" + println(v) // ERROR "undefined.*v" } } |