1 /* Copyright (C) 2003 Free Software Foundation.
3 Check that constant folding of built-in math functions doesn't
4 break anything and produces the expected results.
6 Written by Roger Sayle, 25th May 2003. */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern void link_error(void);
13 extern double exp(double);
14 extern double atan(double);
18 if (exp (1.0) < 2.71 || exp (1.0) > 2.72)
20 if (exp (2.0) < 7.38 || exp (2.0) > 7.39)
22 if (exp (-2.0) < 0.13 || exp (-2.0) > 0.14)
24 if (atan (1.0) < 0.78 || atan (1.0) > 0.79)