* gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 12 Jan 2005 12:05:47 +0000 (12:05 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 12 Jan 2005 12:05:47 +0000 (12:05 +0000)
From-SVN: r93223

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ftrapv-2.c

index ee78dce..90a14e2 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.
+
 2005-01-12  Ben Elliston  <bje@au.ibm.com>
 
        * g++.dg/warn/Wunused-9.C: Don't XFAIL the +f() case.
index de66129..d79b86d 100644 (file)
@@ -10,6 +10,7 @@
 /* { dg-options "-ftrapv" } */
 
 extern void abort(void);
+extern long labs(long);
 
 int __attribute__((noinline))
 iabsv(int a)
@@ -44,7 +45,7 @@ inegv(int a)
 long __attribute__((noinline))
 labsv(long a)
 {
-  return abs(a);
+  return labs(a);
 }
 
 long __attribute__((noinline))