From 84e7cb0611d439dc181a279c8650b700dd1735ca Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 15 Dec 2009 13:57:24 -0800 Subject: [PATCH] Tweak test to work with both 6g and gccgo. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Pull the struct into a single line, since 6g reports the error on the last line of the struct definition and gccgo reports it on the first line. 6g: bug215.go:12: invalid recursive type A gccgo: bug215.go:12:6: error: invalid recursive type ‘A’ R=rsc https://golang.org/cl/180044 --- test/fixedbugs/bug215.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/fixedbugs/bug215.go b/test/fixedbugs/bug215.go index d58786c16a..8f7fb2d3c2 100644 --- a/test/fixedbugs/bug215.go +++ b/test/fixedbugs/bug215.go @@ -9,8 +9,6 @@ package main -type A struct { - a A; -} // ERROR "recursive" +type A struct { a A } // ERROR "recursive" func foo() { new(A).bar() } func (a A) bar() {} -- 2.50.0