| 1 |
/* |
| 2 |
* { dg-do compile } |
| 3 |
* { dg-options "-std=c23" } |
| 4 |
*/ |
| 5 |
|
| 6 |
// recursive declarations |
| 7 |
|
| 8 |
extern struct bar { struct bar* p; int x; } b; |
| 9 |
extern struct bar { struct bar* p; int x; } b; |
| 10 |
|
| 11 |
struct foo { struct foo { struct foo* p; int x; }* p; int x; } a; /* { dg-error "nested" } */ |
| 12 |
|