diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-10-04 14:18:07 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-10-04 15:03:28 +0100 |
commit | beeb6898fe8ad44731bc58cad7220511b8225797 (patch) | |
tree | 53d4069e4609af8cad0373c382131b0e007a7bf2 /libstdc++-v3 | |
parent | b74ab7a1609f01afaab9b82cfabfb96ae9e1145d (diff) | |
download | gcc-beeb6898fe8ad44731bc58cad7220511b8225797.zip gcc-beeb6898fe8ad44731bc58cad7220511b8225797.tar.gz gcc-beeb6898fe8ad44731bc58cad7220511b8225797.tar.bz2 |
libstdc++: Disable test for freestanding
This test checks the exception-safety of std::stable_sort if copying a
value throws. For freestanding we don't allocate in std::stable_sort
anyway, and the exception thrown via __throw_runtime_error terminates,
so disable the test.
libstdc++-v3/ChangeLog:
* testsuite/25_algorithms/stable_sort/mem_check.cc: Do nto run
for freestanding.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc b/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc index d1f7690..9dde4fb 100644 --- a/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc +++ b/libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +// { dg-require-effective-target hosted } + // 25.3.1.2 [lib.stable.sort] #include <algorithm> |