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
PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
lto
/
pr60461_0.c
blob
cad6a8de85b1e0f592b42f22bf8add3dbde6d78e
1
/* { dg-lto-do link } */
2
/* { dg-lto-options {{-Os -flto} } } */
3
4
5
struct
S
6
{
7
int
f1
;
8
int
f2
;
9
}
a
[
1
] = { {
0
,
0
} };
10
11
int
b
,
c
;
12
13
static unsigned short
fn1
(
struct
S
);
14
15
void
16
fn2
()
17
{
18
for
(;
c
;)
19
;
20
b
=
0
;
21
fn1
(
a
[
0
]);
22
}
23
24
unsigned short
25
fn1
(
struct
S p
)
26
{
27
if
(
p
.
f1
)
28
fn2
();
29
return
0
;
30
}
31
32
int
33
main
()
34
{
35
fn2
();
36
return
0
;
37
}