(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr56125.c
       1  /* PR tree-optimization/56125 */
       2  /* { dg-do run } */
       3  /* { dg-options "-O2 -ffast-math" } */
       4  
       5  extern void abort (void);
       6  extern double fabs (double);
       7  
       8  __attribute__((cold)) double
       9  foo (double x, double n)
      10  {
      11    double u = x / (n * n);
      12    return u;
      13  }
      14  
      15  int
      16  main ()
      17  {
      18    if (fabs (foo (29, 2) - 7.25) > 0.001)
      19      abort ();
      20    return 0;
      21  }