(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
lto/
20081115_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 foo (void);
       5  
       6  int f (void)
       7  {
       8    return 1;
       9  }
      10  
      11  extern inline int __attribute__ ((gnu_inline))
      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  int
      24  main ()
      25  {
      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;
      34  }