1/* PR tree-optimization/55920 */
2
3struct A { unsigned a; } __attribute__((packed));
4struct B { int b; unsigned char c[16]; };
5void bar (struct A);
6
7void
8foo (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}
17