introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / issue8441.go
blob4489ca9eb677ca7e8265a3e2727616134de229dc
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Issue 8368 and 8441. Recursive struct definitions didn't work.
6 // No runtime test; just make sure it compiles.
8 package cgotest
11 typedef struct one one;
12 typedef struct two two;
13 struct one {
14 two *x;
16 struct two {
17 one *x;
20 import "C"
22 func issue8368(one *C.struct_one, two *C.struct_two) {
25 func issue8441(one *C.one, two *C.two) {
26 issue8441(two.x, one.x)