summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/25_algorithms
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-10-04 14:18:07 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-10-04 15:03:28 +0100
commitbeeb6898fe8ad44731bc58cad7220511b8225797 (patch)
tree53d4069e4609af8cad0373c382131b0e007a7bf2 /libstdc++-v3/testsuite/25_algorithms
parentb74ab7a1609f01afaab9b82cfabfb96ae9e1145d (diff)
downloadgcc-beeb6898fe8ad44731bc58cad7220511b8225797.tar.gz
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/testsuite/25_algorithms')
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc2
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 d1f76906890..9dde4fb2b38 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>