rt_gccstream/gcc/testsuite/gcc.dg/union-cast-4.c

9 lines
146 B
C

/* PR c/35748 */
union U { void x[1]; }; /* { dg-error "array of voids" } */
void foo()
{
(union U)0; /* { dg-error "type not present" } */
}