[libcxx-commits] [libcxx] 99d5fad - [libc++] Remove invalid C++20 code from a test.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 23 11:14:24 PST 2021


Author: Mark de Wever
Date: 2021-01-23T20:10:17+01:00
New Revision: 99d5fad7a5cabac39d8a93485d1ad0ef4ba2a579

URL: https://github.com/llvm/llvm-project/commit/99d5fad7a5cabac39d8a93485d1ad0ef4ba2a579
DIFF: https://github.com/llvm/llvm-project/commit/99d5fad7a5cabac39d8a93485d1ad0ef4ba2a579.diff

LOG: [libc++] Remove invalid C++20 code from a test.

During the review of D91986 it has been discovered the in C++11
deprecated `throw()` exception specification has been removed in
C++20. Removed the part of the test code using this feature.

Added: 
    

Modified: 
    libcxx/test/std/concepts/concept.destructible/destructible.compile.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/concepts/concept.destructible/destructible.compile.pass.cpp b/libcxx/test/std/concepts/concept.destructible/destructible.compile.pass.cpp
index 709972a391cb..06c1d893fd89 100644
--- a/libcxx/test/std/concepts/concept.destructible/destructible.compile.pass.cpp
+++ b/libcxx/test/std/concepts/concept.destructible/destructible.compile.pass.cpp
@@ -34,12 +34,6 @@ struct NoexceptFalse {
   ~NoexceptFalse() noexcept(false);
 };
 
-// Since C++17 dynamic exception specifications are no longer
-// part of the standard.
-struct Throw {
-  ~Throw() throw();
-};
-
 struct Protected {
 protected:
   ~Protected() = default;
@@ -69,8 +63,6 @@ void test() {
   test<NoexceptTrue>();
   test<NoexceptFalse>();
 
-  test<Throw>();
-
   test<Protected>();
   test<Private>();
 


        


More information about the libcxx-commits mailing list