Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / lto / 20081118_0.c
blobb37eb31a46db1177e1bd2f45cde15f9803e7831c
1 /* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
3 extern void abort (void);
4 extern int f (void);
6 extern inline int
7 e_inline_baz (void)
9 return 1 + f();
12 int
13 bar (void)
15 return e_inline_baz ();
18 main ()
20 #ifdef OPTIMIZE
21 if (bar () != 2 || foo () != 3)
22 abort ();
23 #else
24 if (bar () != 0 || foo () != 0)
25 abort ();
26 #endif
27 return 0;