Source file misc/cgo/testgodefs/testdata/issue37479.go
1 // Copyright 2020 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. 4 // 5 // +build ignore 6 7 package main 8 9 /* 10 typedef struct A A; 11 12 typedef struct { 13 struct A *next; 14 struct A **prev; 15 } N; 16 17 struct A 18 { 19 N n; 20 }; 21 22 typedef struct B 23 { 24 A* a; 25 } B; 26 */ 27 import "C" 28 29 type N C.N 30 31 type A C.A 32 33 type B C.B 34