Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / fixedbugs / bug215.go
blob8f7fb2d3c2d9f76dd8b3048d13dc2a6d64341268
1 // errchk $G $D/$F.go
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Used to crash the compiler.
8 // http://code.google.com/p/go/issues/detail?id=158
10 package main
12 type A struct { a A } // ERROR "recursive"
13 func foo() { new(A).bar() }
14 func (a A) bar() {}