From 4675e3332b0af407aee8bc078c1a50cccb318ce6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 27 Mar 2011 12:10:50 -0700 Subject: [PATCH] test: match gccgo error messages for bug325.go. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bug325.go:13:10: error: invalid indirect of ‘unsafe.Pointer’ bug325.go:14:31: error: reference to field ‘foo’ in object which has no fields or methods R=golang-dev, r CC=golang-dev https://golang.org/cl/4313050 --- test/fixedbugs/bug325.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixedbugs/bug325.go b/test/fixedbugs/bug325.go index 205b836b083..b86740fff93 100644 --- a/test/fixedbugs/bug325.go +++ b/test/fixedbugs/bug325.go @@ -11,5 +11,5 @@ import "unsafe" func main() { var x unsafe.Pointer println(*x) // ERROR "invalid indirect.*unsafe.Pointer" - var _ = (unsafe.Pointer)(nil).foo // ERROR "no field or method foo" + var _ = (unsafe.Pointer)(nil).foo // ERROR "foo" }