| 1 |
/* PR tree-optimization/55920 */ |
| 2 |
|
| 3 |
struct A { unsigned a; } __attribute__((packed)); |
| 4 |
struct B { int b; unsigned char c[16]; }; |
| 5 |
void bar (struct A); |
| 6 |
|
| 7 |
void |
| 8 |
foo (struct B *x) |
| 9 |
{ |
| 10 |
struct A a; |
| 11 |
if (x->b) |
| 12 |
__builtin_memcpy (&a, x->c, sizeof a); |
| 13 |
else |
| 14 |
a.a = 0; |
| 15 |
bar (a); |
| 16 |
} |