| 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 S5 |
| 14 |
{ |
| 15 |
int i; |
| 16 |
struct S4 l_8[2]; |
| 17 |
} __attribute__((__packed__)); |
| 18 |
|
| 19 |
int a, b; |
| 20 |
|
| 21 |
struct S4 func_2 (int x) |
| 22 |
{ |
| 23 |
struct S5 l = { |
| 24 |
0, |
| 25 |
{{0}, {0}} |
| 26 |
}; |
| 27 |
l.i = a; |
| 28 |
g_10 = l.l_8[1]; |
| 29 |
for (; x<2; x++) { |
| 30 |
struct S4 tmp = { |
| 31 |
11936567 |
| 32 |
}; |
| 33 |
l.l_8[x] = tmp; |
| 34 |
} |
| 35 |
b = l.i; |
| 36 |
return g_10; |
| 37 |
} |
| 38 |
|
| 39 |
int main (void) |
| 40 |
{ |
| 41 |
func_2 (0); |
| 42 |
return 0; |
| 43 |
} |