OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / builtins-14.c
1 /* Copyright (C) 2003 Free Software Foundation.
2
3    Check that constant folding of built-in math functions doesn't
4    break anything and produces the expected results.
5
6    Written by Roger Sayle, 9th April 2003.  */
7
8 /* { dg-do link } */
9 /* { dg-options "-O2" } */
10
11 extern void link_error(void);
12
13 extern double pow(double,double);
14
15
16 int main()
17 {
18   if (pow (2.0, 3.0) != 8.0)
19     link_error ();
20
21   if (pow (2.0, -3.0) != 0.125)
22     link_error ();
23
24   return 0;
25 }
26