1/* When -fzero-initialized-in-bss was in effect, we used to only allocate
2   storage for d1.a.  */
3/* { dg-do run } */
4/* { dg-options "" } */
5/* { dg-skip-if "packed attribute missing for d1" { "epiphany-*-*" } { "*" } { "" } } */
6extern void abort (void);
7extern void exit (int);
8
9struct { int a; int x[]; } d1 = { 0, 0 };
10int d2 = 0;
11
12int
13main ()
14{
15  d2 = 1;
16  if (sizeof (d1) != sizeof (int))
17    abort ();
18  if (d1.x[0] != 0)
19    abort ();
20  exit (0);
21}
22