Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr25805.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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-*-*" } } */ | |
6 extern void abort (void); | |
7 extern void exit (int); | |
8 | |
9 struct { int a; int x[]; } d1 = { 0, 0 }; | |
10 int d2 = 0; | |
11 | |
12 int | |
13 main () | |
14 { | |
15 d2 = 1; | |
16 if (sizeof (d1) != sizeof (int)) | |
17 abort (); | |
18 if (d1.x[0] != 0) | |
19 abort (); | |
20 exit (0); | |
21 } |