Mercurial > hg > CbC > CbC_gcc
comparison libgo/misc/cgo/testgodefs/testdata/issue37479.go @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
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 |