]> Cypherpunks repositories - gostls13.git/commitdiff
Tweak test to work with both 6g and gccgo.
authorIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2009 21:57:24 +0000 (13:57 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2009 21:57:24 +0000 (13:57 -0800)
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

index d58786c16af225ec4c3a5439e8ff7608dfc3c80d..8f7fb2d3c2d9f76dd8b3048d13dc2a6d64341268 100644 (file)
@@ -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()       {}