[committed] libstdc++: Qualify std::abort() in test

Message ID 20220921074534.863302-1-jwakely@redhat.com
State New, archived
Headers
Series [committed] libstdc++: Qualify std::abort() in test |

Commit Message

Jonathan Wakely Sept. 21, 2022, 7:45 a.m. UTC
  Tested powerpc64le-linux, pushed to trunk.

-- >8 --

This test includes <cstdlib> so should use std::abort not ::abort.

libstdc++-v3/ChangeLog:

	* testsuite/18_support/uncaught_exception/14026.cc: Qualify
	call to std::abort.
---
 libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
index 22d4a90d49e..bd281b97174 100644
--- a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
+++ b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
@@ -28,7 +28,7 @@  static void
 no_uncaught ()
 {
   if (std::uncaught_exception())
-    abort();
+    std::abort();
 }
 
 int