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
2009-10-16 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
lto
/
20081115_0.c
1
/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */
2
3
extern void abort (void);
4
5
int f (void)
6
{
7
return 1;
8
}
9
10
extern inline int
11
e_inline_baz (void)
12
{
13
return 1 + f();
14
}
15
16
int
17
bar (void)
18
{
19
return e_inline_baz ();
20
}
21
22
main ()
23
{
24
#ifdef OPTIMIZE
25
if (bar () != 2 || foo () != 3)
26
abort ();
27
#else
28
if (bar () != 0 || foo () != 0)
29
abort ();
30
#endif
31
return 0;
32
}