PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51034.c
blobc9b9c27c9cdb33a8bf83ee4a7860d34b45b674da
1 /* PR c/51034 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
5 struct S;
7 int
8 main ()
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" } */