| 1 |
/* |
| 2 |
* { dg-do compile } |
| 3 |
* { dg-options "-std=gnu23" } |
| 4 |
*/ |
| 5 |
|
| 6 |
struct r { int a; char b[]; }; |
| 7 |
struct r { int a; char b[0]; }; /* allowed GNU extension */ |
| 8 |
struct r { int a; char b[1]; }; /* { dg-error "redefinition of struct or union" } */ |
| 9 |
|
| 10 |
|