OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/lto/ipacp_0.c: New test.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
lto
/
20081201-1_0.c
1
/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */
2
3
extern void abort (void);
4
5
int
6
f (void)
7
{
8
return 1;
9
}
10
11
extern inline int
12
e_inline_baz (void)
13
{
14
return 1 + f();
15
}
16
17
int
18
bar (void)
19
{
20
return e_inline_baz ();
21
}
22
23
main ()
24
{
25
#ifdef OPTIMIZE
26
if (bar () != 2 || foo () != 3)
27
abort ();
28
#else
29
if (bar () != 0 || foo () != 0)
30
abort ();
31
#endif
32
return 0;
33
}