(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
lto/
20081118_0.c
       1  /* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
       2  
       3  extern void abort (void);
       4  extern int f (void);
       5  extern int foo (void);
       6  
       7  extern inline int __attribute__ ((gnu_inline))
       8  e_inline_baz (void)
       9  {
      10   return 1 + f();
      11  }
      12  
      13  int
      14  bar (void)
      15  {
      16   return e_inline_baz ();
      17  }
      18  
      19  int
      20  main ()
      21  {
      22  #ifdef OPTIMIZE
      23   if (bar () != 2 || foo () != 3)
      24     abort ();
      25  #else
      26   if (bar () != 0 || foo () != 0)
      27     abort ();
      28  #endif
      29   return 0;
      30  }