blob: 622bf6504216d085d739e4d2a1f1244262cb4dd4 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "" } */
typedef struct S TS;
typedef union U TU;
void
foo (void)
{
(TS) { }; /* { dg-error "invalid use of incomplete typedef" } */
(TU) { }; /* { dg-error "invalid use of incomplete typedef" } */
}