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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fuse-caller-save.c
blob
561a66dd7e48b10b1a4f9bba646506aae24d16fa
1
/* { dg-do run } */
2
/* { dg-options "-fuse-caller-save" } */
3
/* Testing -fuse-caller-save optimization option. */
4
5
static int
__attribute__
((
noinline
))
6
bar
(
int
x
)
7
{
8
return
x
+
3
;
9
}
10
11
int
__attribute__
((
noinline
))
12
foo
(
int
y
)
13
{
14
return
y
+
bar
(
y
);
15
}
16
17
int
18
main
(
void
)
19
{
20
return
!(
foo
(
5
) ==
13
);
21
}