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
/
sms-compare-debug-2.c
blob
dca7b65c08e4fc36aa0cc3b2b140e5c343511219
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fcompare-debug -fmodulo-sched" } */
3
4
struct
S
{
int
f
;
signed int
g
:
2
; }
a
[
1
],
c
= {
5
,
1
},
d
;
5
short
b
;
6
7
__attribute__
((
noinline
,
noclone
))
void
8
foo
(
int
x
)
9
{
10
if
(
x
!=
1
)
11
__builtin_abort
();
12
}
13
14
int
15
main
()
16
{
17
while
(
b
++ <=
0
)
18
{
19
struct
S e
= {
1
,
1
};
20
d
=
e
=
a
[
0
] =
c
;
21
}
22
foo
(
a
[
0
].
g
);
23
return
0
;
24
}