aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ftrapv-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/ftrapv-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/ftrapv-2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/ftrapv-2.c b/gcc/testsuite/gcc.dg/ftrapv-2.c
index d79b86dde9c..de66129ba70 100644
--- a/gcc/testsuite/gcc.dg/ftrapv-2.c
+++ b/gcc/testsuite/gcc.dg/ftrapv-2.c
@@ -10,7 +10,6 @@
/* { dg-options "-ftrapv" } */
extern void abort(void);
-extern long labs(long);
int __attribute__((noinline))
iabsv(int a)
@@ -45,7 +44,7 @@ inegv(int a)
long __attribute__((noinline))
labsv(long a)
{
- return labs(a);
+ return abs(a);
}
long __attribute__((noinline))