summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/init-bad-5.c
blob: 18cee43b5374e639a4ce0d12b4f00044137a0347 (plain)
1
2
3
4
5
/* PR c/28136 */
/* { dg-do compile } */
/* { dg-options "" } */

int i = (struct A[]) {};  /* { dg-error "incomplete|empty|initialization" } */
OpenPOWER on IntegriCloud