repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
pr89692.C
blob
36adeb52773cf3b939fbf858cd45df81740139a4
1
// PR lto/89692
2
// { dg-do compile }
3
// { dg-require-effective-target lto }
4
// { dg-options "-flto -O2" }
5
6
struct S {
7
short int a, b;
8
unsigned char c : 1;
9
};
10
11
bool
12
foo (void)
13
{
14
unsigned char d[sizeof (S)] = { 0 };
15
S e;
16
17
__builtin_memcpy (&e, d, sizeof (d));
18
19
return e.c == d[0];
20
}