* gcc.dg/ftrapv-2.c (labsv): Call labs instead of abs.

From-SVN: r93223
This commit is contained in:
Ulrich Weigand 2005-01-12 12:05:47 +00:00 committed by Ulrich Weigand
parent ef6f56559b
commit 1237487644
2 changed files with 6 additions and 1 deletions

View 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.

View 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))