| 1 |
/* PR c/51034 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=gnu99" } */ |
| 4 |
|
| 5 |
struct S; |
| 6 |
|
| 7 |
int |
| 8 |
main () |
| 9 |
{ |
| 10 |
struct R { typeof (((struct W) {})) x; } r; /* { dg-error "invalid use of undefined type" } */ |
| 11 |
struct S { typeof (((struct S) {})) x; } s; /* { dg-error "invalid use of undefined type" } */ |
| 12 |
struct T { int x[sizeof ((struct T) {})]; } t;/* { dg-error "invalid use of undefined type" } */ |
| 13 |
struct U { int x[sizeof((struct V){})];} u; /* { dg-error "invalid use of undefined type" } */ |
| 14 |
} |