Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/torture/pr47228.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 /* { dg-do run } */ | |
2 /* { dg-require-effective-target int32plus } */ | |
3 | |
4 struct S4 | |
5 { | |
6 unsigned f0:24; | |
7 } __attribute__((__packed__)); | |
8 | |
9 struct S4 g_10 = { | |
10 6210831 | |
11 }; | |
12 | |
13 struct S4 func_2 (int x) | |
14 { | |
15 struct S4 l_8[2] = { | |
16 {0}, {0} | |
17 }; | |
18 g_10 = l_8[1]; | |
19 for (; x<2; x++) { | |
20 struct S4 tmp = { | |
21 11936567 | |
22 }; | |
23 l_8[x] = tmp; | |
24 } | |
25 return g_10; | |
26 } | |
27 | |
28 int main (void) | |
29 { | |
30 func_2 (0); | |
31 return 0; | |
32 } |