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

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

void foo(struct A a) {}