repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr101062.c
blob
6c37ed888856e6ba1209ddd98f92b0ca5bfa784f
1
/* PR middle-end/101062 */
2
/* { dg-do run } */
3
/* { dg-options "-O2 -fno-toplevel-reorder -frename-registers" } */
4
5
union
U
{
signed
b
:
5
; };
6
int
c
;
7
volatile
union
U d
[
7
] = { {
8
} };
8
short
e
=
1
;
9
10
__attribute__
((
noipa
))
void
11
foo
()
12
{
13
d
[
6
].
b
=
0
;
14
d
[
6
].
b
=
0
;
15
d
[
6
].
b
=
0
;
16
d
[
6
].
b
=
0
;
17
d
[
6
].
b
=
0
;
18
e
=
0
;
19
c
=
0
;
20
}
21
22
int
23
main
()
24
{
25
foo
();
26
if
(
e
!=
0
)
27
__builtin_abort
();
28
return
0
;
29
}