PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / 20081115_0.c
blob2174cbb0b48a95948055d169a880a3af6bd579e2
1 /* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
3 extern void abort (void);
4 extern int foo (void);
6 int f (void)
8 return 1;
11 extern inline int __attribute__ ((gnu_inline))
12 e_inline_baz (void)
14 return 1 + f();
17 int
18 bar (void)
20 return e_inline_baz ();
23 int
24 main ()
26 #ifdef OPTIMIZE
27 if (bar () != 2 || foo () != 3)
28 abort ();
29 #else
30 if (bar () != 0 || foo () != 0)
31 abort ();
32 #endif
33 return 0;