diff options
| author | Ian Lance Taylor <iant@golang.org> | 2009-12-15 13:57:24 -0800 | 
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2009-12-15 13:57:24 -0800 | 
| commit | 81c3056a3e158b6faef1098e909afc71567ece8f (patch) | |
| tree | 4af62651681322c2460a6f32d04fe670368281ce | |
| parent | 9af3f2a4dcb1957c80457c483332726eb9927bc5 (diff) | |
| download | golang-81c3056a3e158b6faef1098e909afc71567ece8f.tar.gz | |
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
http://codereview.appspot.com/180044
| -rw-r--r-- | test/fixedbugs/bug215.go | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/test/fixedbugs/bug215.go b/test/fixedbugs/bug215.go index d58786c16..8f7fb2d3c 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()	{} | 
