From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] libstdc++: Add { target c++98_only } to tests
Date: Mon, 4 Sep 2023 17:29:15 +0100 [thread overview]
Message-ID: <20230904162918.515915-1-jwakely@redhat.com> (raw)
Tested x86_64-linux. Pushed to trunk.
-- >8 --
These test behaviour only seen with -std=c++03 so the target selector
should match.
libstdc++-v3/ChangeLog:
* testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
* testsuite/26_numerics/complex/56111.cc: Likewise.
---
libstdc++-v3/testsuite/20_util/bitset/107037.cc | 2 +-
libstdc++-v3/testsuite/26_numerics/complex/56111.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/testsuite/20_util/bitset/107037.cc b/libstdc++-v3/testsuite/20_util/bitset/107037.cc
index b4560dd3775..3b2bb80277e 100644
--- a/libstdc++-v3/testsuite/20_util/bitset/107037.cc
+++ b/libstdc++-v3/testsuite/20_util/bitset/107037.cc
@@ -1,5 +1,5 @@
// { dg-options "-std=c++03" }
-// { dg-do compile }
+// { dg-do compile { target c++98_only } }
// PR libstdc++/107037 bitset::_M_do_reset fails for strict -std=c++03 mode
#include <bitset>
template class std::bitset<0>;
diff --git a/libstdc++-v3/testsuite/26_numerics/complex/56111.cc b/libstdc++-v3/testsuite/26_numerics/complex/56111.cc
index e583b190ee1..0237ed356e1 100644
--- a/libstdc++-v3/testsuite/26_numerics/complex/56111.cc
+++ b/libstdc++-v3/testsuite/26_numerics/complex/56111.cc
@@ -1,5 +1,5 @@
-// { dg-do compile }
// { dg-options "-std=c++98" }
+// { dg-do compile { target c++98_only } }
// Copyright (C) 2013-2023 Free Software Foundation, Inc.
//
--
2.41.0
reply other threads:[~2023-09-04 16:29 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=20230904162918.515915-1-jwakely@redhat.com \
--to=jwakely@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@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).