Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-39.c
blob6359be2b30ebb4d96a0a431eea90458f9d9666b6
1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that asin, asinf, asinl, acos, acosf
4 and acosl built-in functions compile.
6 Written by Uros Bizjak, 20th April 2004. */
8 /* { dg-do compile } */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern double asin(double);
12 extern double acos(double);
13 extern float asinf(float);
14 extern float acosf(float);
15 extern long double asinl(long double);
16 extern long double acosl(long double);
19 double test1(double x)
21 return asin(x);
24 double test2(double x)
26 return acos(x);
29 float test1f(float x)
31 return asinf(x);
34 float test2f(float x)
36 return acosf(x);
39 long double test1l(long double x)
41 return asinl(x);
44 long double test2l(long double x)
46 return acosl(x);