(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
lto/
pr105459_0.c
       1  /* { dg-lto-do link } */
       2  /* { dg-lto-options { { -flto -O1 } } } */
       3  
       4  double m;
       5  int n;
       6  
       7  __attribute__ ((optimize ("-funsafe-math-optimizations")))
       8  void
       9  bar (int x)
      10  {
      11    n = x;
      12    m = n;
      13  }
      14  
      15  __attribute__ ((flatten))
      16  void
      17  foo (int x)
      18  {
      19    bar (x);
      20  }
      21  
      22  void
      23  quux (void)
      24  {
      25    ++n;
      26  }
      27  
      28  int
      29  main (void)
      30  {
      31    foo (0);
      32    quux ();
      33  
      34    return 0;
      35  }