[libcxx-commits] [libcxx] 35d8360 - [libc++][C++03] Make __libcpp_verbose_abort noexcept and fix the test for it (#163372)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 16 00:31:32 PDT 2025
Author: Nikolas Klauser
Date: 2025-10-16T09:31:29+02:00
New Revision: 35d83600f3bb0c5e313a9b5acdacbd8256366476
URL: https://github.com/llvm/llvm-project/commit/35d83600f3bb0c5e313a9b5acdacbd8256366476
DIFF: https://github.com/llvm/llvm-project/commit/35d83600f3bb0c5e313a9b5acdacbd8256366476.diff
LOG: [libc++][C++03] Make __libcpp_verbose_abort noexcept and fix the test for it (#163372)
Added:
Modified:
libcxx/include/__cxx03/__verbose_abort
libcxx/test/libcxx-03/assertions/customize_verbose_abort.link-time.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/include/__cxx03/__verbose_abort b/libcxx/include/__cxx03/__verbose_abort
index 4fcfffa2b4dfa..52d1297b65593 100644
--- a/libcxx/include/__cxx03/__verbose_abort
+++ b/libcxx/include/__cxx03/__verbose_abort
@@ -21,7 +21,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// This function should never be called directly from the code -- it should only be called through
// the _LIBCPP_VERBOSE_ABORT macro.
_LIBCPP_NORETURN _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_OVERRIDABLE_FUNC_VIS
-_LIBCPP_ATTRIBUTE_FORMAT(__printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...);
+_LIBCPP_ATTRIBUTE_FORMAT(__printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...) _NOEXCEPT;
// _LIBCPP_VERBOSE_ABORT(format, args...)
//
diff --git a/libcxx/test/libcxx-03/assertions/customize_verbose_abort.link-time.pass.cpp b/libcxx/test/libcxx-03/assertions/customize_verbose_abort.link-time.pass.cpp
index 390c6b6db190d..3c7a2d45d4f01 100644
--- a/libcxx/test/libcxx-03/assertions/customize_verbose_abort.link-time.pass.cpp
+++ b/libcxx/test/libcxx-03/assertions/customize_verbose_abort.link-time.pass.cpp
@@ -12,9 +12,7 @@
// failures when back-deploying.
// XFAIL: availability-verbose_abort-missing
-// XFAIL: FROZEN-CXX03-HEADERS-FIXME
-
-#include <__verbose_abort>
+#include <__cxx03/__verbose_abort>
#include <cstdlib>
void std::__libcpp_verbose_abort(char const*, ...) _NOEXCEPT { std::exit(EXIT_SUCCESS); }
More information about the libcxx-commits
mailing list