3 // Copyright 2017 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 // Issue 22904: Make sure the compiler emits a proper error message about
8 // invalid recursive types rather than crashing.
12 type a struct{ b } // ERROR "invalid recursive type"
13 type b struct{ a } // GCCGO_ERROR "invalid recursive type"