summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/init-1.c
blob: 007991b6af705d95771d7beae3fa4aaaf4d58e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct a
{ double a, b, c; };

struct b
{
  struct a arr[6];
};

static struct b a_b =
{
  {0,0,0},
  {0,0,0},	/* { dg-error "extra brace|excess elements|near" } */
  {0,0,0},	/* { dg-error "extra brace|excess elements|near" } */
  {0,0,0},	/* { dg-error "extra brace|excess elements|near" } */
  {0,0,0},	/* { dg-error "extra brace|excess elements|near" } */
  {0,0,0},	/* { dg-error "extra brace|excess elements|near" } */
};