summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/union-cast-4.c
blob: a1c98ba14acc77ae7ea51f8c7c1d02bd1be7a322 (plain)
1
2
3
4
5
6
7
8
/* PR c/35748 */

union U { void x[1]; }; /* { dg-error "array of voids" } */

void foo()
{
  (union U)0; /* { dg-error "type not present" } */
}