Commit 84e7cb06 authored by Ian Lance Taylor's avatar Ian Lance Taylor

Tweak test to work with both 6g and gccgo.

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
parent 82747423
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
package main package main
type A struct { type A struct { a A } // ERROR "recursive"
a A;
} // ERROR "recursive"
func foo() { new(A).bar() } func foo() { new(A).bar() }
func (a A) bar() {} func (a A) bar() {}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment