Skip to content

Commit 99d5fad

Browse files
committed
[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.
1 parent 166d40f commit 99d5fad

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ struct NoexceptFalse {
3434
~NoexceptFalse() noexcept(false);
3535
};
3636

37-
// Since C++17 dynamic exception specifications are no longer
38-
// part of the standard.
39-
struct Throw {
40-
~Throw() throw();
41-
};
42-
4337
struct Protected {
4438
protected:
4539
~Protected() = default;
@@ -69,8 +63,6 @@ void test() {
6963
test<NoexceptTrue>();
7064
test<NoexceptFalse>();
7165

72-
test<Throw>();
73-
7466
test<Protected>();
7567
test<Private>();
7668

0 commit comments

Comments
 (0)