summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/union-3.c
blob: 3e89b755afad5a9387ddfe4165d6a63a354842e4 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR target/27421 */
/* { dg-do compile } */

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

void foo(union A a) {}