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 c/64856
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr61776.c
blob
8768c546bdaa7b13ad3875230ca58b96ffd82524
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fprofile-generate" } */
3
4
#include <setjmp.h>
5
6
int
cond1
,
cond2
;
7
8
int
goo
()
__attribute__
((
noinline
));
9
10
int
goo
() {
11
if
(
cond1
)
12
return
1
;
13
else
14
return
2
;
15
}
16
17
jmp_buf
env
;
18
int
foo
() {
19
int
a
;
20
21
setjmp
(
env
);
22
if
(
cond2
)
23
a
=
goo
();
24
else
25
a
=
3
;
26
return
a
;
27
}