summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-21.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-21.c')
-rw-r--r--gcc/testsuite/gcc.dg/builtins-21.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-21.c b/gcc/testsuite/gcc.dg/builtins-21.c
index 38d0c4f3114..60b127fe61b 100644
--- a/gcc/testsuite/gcc.dg/builtins-21.c
+++ b/gcc/testsuite/gcc.dg/builtins-21.c
@@ -8,6 +8,16 @@
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math" } */
+extern double fabs (double);
+extern float fabsf (float);
+extern long double fabsl (long double);
+extern double sqrt (double);
+extern float sqrtf (float);
+extern long double sqrtl (long double);
+extern double exp (double);
+extern float expf (float);
+extern long double expl (long double);
+
double test1(double x)
{
return fabs(x*x);