public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r13-3061] libstdc++: Disable test for freestanding
Date: Tue,  4 Oct 2022 14:07:14 +0000 (GMT)	[thread overview]
Message-ID: <20221004140714.CF229385828E@sourceware.org> (raw)

https://gcc.gnu.org/g:beeb6898fe8ad44731bc58cad7220511b8225797

commit r13-3061-gbeeb6898fe8ad44731bc58cad7220511b8225797
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Oct 4 14:18:07 2022 +0100

    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.

Diff:
---
 libstdc++-v3/testsuite/25_algorithms/stable_sort/mem_check.cc | 2 ++
 1 file changed, 2 insertions(+)

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>

                 reply	other threads:[~2022-10-04 14:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221004140714.CF229385828E@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).