blob: 36adeb52773cf3b939fbf858cd45df81740139a4 [file] [log] [blame]
// PR lto/89692
// { dg-do compile }
// { dg-require-effective-target lto }
// { dg-options "-flto -O2" }
struct S {
short int a, b;
unsigned char c : 1;
};
bool
foo (void)
{
unsigned char d[sizeof (S)] = { 0 };
S e;
__builtin_memcpy (&e, d, sizeof (d));
return e.c == d[0];
}