]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: adjust call to abort in excess-precision-12
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 9 Nov 2023 15:29:58 +0000 (16:29 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 19 Dec 2023 15:02:48 +0000 (16:02 +0100)
On non-hosted targets, cstdlib may not be sufficient to have abort
defined, but it should be for std::abort.

gcc/testsuite/ChangeLog:

* g++.target/i386/excess-precision-12.C: call std::abort instead of abort.

gcc/testsuite/g++.target/i386/excess-precision-12.C

index dff48c07c8b7664b8865c35f42006638ce259652..7cfd15d6136dd1e28bf4c462b436e92a12b3b91d 100644 (file)
@@ -13,8 +13,8 @@ main (void)
   unsigned long long int u = (1ULL << 63) + 1;
 
   if ((f <=> u) >= 0)
-    abort ();
+    std::abort ();
 
   if ((u <=> f) <= 0)
-    abort ();
+    std::abort ();
 }