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
/
ipa
/
pr111571.c
blob
2a4adc608db9f9397ad57038f8344a7f9de7bd24
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
struct
a
{
5
int
b
;
6
};
7
struct
c
{
8
long
d
;
9
struct
a e
;
10
long
f
;
11
};
12
int
g
,
h
,
i
;
13
int
j
() {
return
0
;}
14
static void
k
(
struct
a l
,
int
p
) {
15
if
(
h
)
16
g
=
0
;
17
for
(;
g
;
g
=
j
())
18
if
(
l
.
b
)
19
break
;
20
}
21
static void
m
(
struct
c l
) {
22
k
(
l
.
e
,
l
.
f
);
23
for
(;; --
i
)
24
;
25
}
26
int
main
() {
27
struct
c n
= {
10
,
9
};
28
m
(
n
);
29
}