[libcxx-commits] [PATCH] D153302: [libc++] Guard terminate_successful with TEST_HAS_NO_EXCEPTIONS

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 21 05:35:09 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9ff36c24a04d: [libc++] Guard terminate_successful with TEST_HAS_NO_EXCEPTIONS (authored by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153302/new/

https://reviews.llvm.org/D153302

Files:
  libcxx/test/support/test_execution_policies.h


Index: libcxx/test/support/test_execution_policies.h
===================================================================
--- libcxx/test/support/test_execution_policies.h
+++ libcxx/test/support/test_execution_policies.h
@@ -58,6 +58,8 @@
   }
 };
 
+#ifndef TEST_HAS_NO_EXCEPTIONS
 [[noreturn]] inline void terminate_successful() { std::exit(0); }
+#endif
 
 #endif // TEST_SUPPORT_TEST_EXECUTION_POLICIES


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153302.533223.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230621/580be975/attachment.bin>


More information about the libcxx-commits mailing list