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 foo(double x,double n)9foo (double x, double n) 10 { 11 double u = x / (n * n); 12 return u; 13 } 14 15 int main()16main () 17 { 18 if (fabs (foo (29, 2) - 7.25) > 0.001) 19 abort (); 20 return 0; 21 } 22