testsuite: Disable tests for C++23 that depend on std::unexpected
authorJonathan Wakely <jwakely@redhat.com>
Mon, 28 Mar 2022 21:05:01 +0000 (22:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 29 Mar 2022 19:30:43 +0000 (20:30 +0100)
commit95768878c718f80e3d562130e2118831bc7fdbf6
treef94f7d6dc0b11adf524ce51fe17d3fc1cb15627d
parent5eba1575ec82cf7376f48873cb92608ad3f87f09
testsuite: Disable tests for C++23 that depend on std::unexpected

These tests depend on unexpected handlers, which are no longer declared
for C++23 mode. Adjust the target specifier so they don't run.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/noexcept06.C: Disable for C++23.

libstdc++-v3/ChangeLog:

* testsuite/18_support/exception/38732.cc: Disable for C++23.
* testsuite/18_support/headers/exception/synopsis.cc: Likewise.
* testsuite/18_support/unexpected_handler.cc: Likewise.
gcc/testsuite/g++.dg/cpp0x/noexcept06.C
libstdc++-v3/testsuite/18_support/exception/38732.cc
libstdc++-v3/testsuite/18_support/headers/exception/synopsis.cc
libstdc++-v3/testsuite/18_support/unexpected_handler.cc