OSDN Git Service

2012-04-03 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / noncompile / init-1.c
1 struct a
2 { double a, b, c; };
3
4 struct b
5 {
6   struct a arr[6];
7 };
8
9 static struct b a_b =
10 {
11   {0,0,0},
12   {0,0,0},      /* { dg-error "extra brace|excess elements|near" } */
13   {0,0,0},      /* { dg-error "extra brace|excess elements|near" } */
14   {0,0,0},      /* { dg-error "extra brace|excess elements|near" } */
15   {0,0,0},      /* { dg-error "extra brace|excess elements|near" } */
16   {0,0,0},      /* { dg-error "extra brace|excess elements|near" } */
17 };