PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-52.c
blob1cff017ad9466e1ff958add0003eb02c9e0f027c
1 /* { dg-do link } */
2 /* { dg-options "-O -ffast-math" } */
4 extern void link_error(void);
6 void test(double x, int n)
8 if (__builtin_powi(x,-1.0) != 1.0/x)
9 link_error ();
10 if (__builtin_powi(x,0.0) != 1.0)
11 link_error ();
12 if (__builtin_powi(x,1.0) != x)
13 link_error ();
14 if (__builtin_powi(1.0,n) != 1.0)
15 link_error ();
18 int main()
20 test(7.3, 2);
21 return 0;