]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable test for freestanding
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Oct 2022 13:18:07 +0000 (14:18 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 4 Oct 2022 14:03:28 +0000 (15:03 +0100)
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.

libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc

index d1f769068904b206a0986e0206583db3faf99e82..9dde4fb2b38cc61a252bba86abf41b1ec9ca7406 100644 (file)
@@ -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>