OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / union-cast-4.c
1 /* PR c/35748 */
2
3 union U { void x[1]; }; /* { dg-error "array of voids" } */
4
5 void foo()
6 {
7   (union U)0; /* { dg-error "type not present" } */
8 }