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, 9th April 2003. */
9 /* { dg-options "-O2" } */
11 extern void link_error(void);
13 extern double pow(double,double);
18 if (pow (2.0, 3.0) != 8.0)
21 if (pow (2.0, -3.0) != 0.125)