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