annotate gcc/testsuite/gcc.dg/pr25805.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* When -fzero-initialized-in-bss was in effect, we used to only allocate
kono
parents:
diff changeset
2 storage for d1.a. */
kono
parents:
diff changeset
3 /* { dg-do run } */
kono
parents:
diff changeset
4 /* { dg-options "" } */
kono
parents:
diff changeset
5 /* { dg-skip-if "packed attribute missing for d1" { "epiphany-*-*" } } */
kono
parents:
diff changeset
6 extern void abort (void);
kono
parents:
diff changeset
7 extern void exit (int);
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 struct { int a; int x[]; } d1 = { 0, 0 };
kono
parents:
diff changeset
10 int d2 = 0;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 int
kono
parents:
diff changeset
13 main ()
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 d2 = 1;
kono
parents:
diff changeset
16 if (sizeof (d1) != sizeof (int))
kono
parents:
diff changeset
17 abort ();
kono
parents:
diff changeset
18 if (d1.x[0] != 0)
kono
parents:
diff changeset
19 abort ();
kono
parents:
diff changeset
20 exit (0);
kono
parents:
diff changeset
21 }