public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3653] libstdc++: Add { target c++98_only } to tests
@ 2023-09-04 16:28 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-09-04 16:28 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:4bbe1414e17992831b91bb177250dc7608ec4ce3

commit r14-3653-g4bbe1414e17992831b91bb177250dc7608ec4ce3
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Sep 4 14:09:01 2023 +0100

    libstdc++: Add { target c++98_only } to tests
    
    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.

Diff:
---
 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 b4560dd37752..3b2bb80277e7 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 e583b190ee19..0237ed356e12 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.
 //

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-04 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-04 16:28 [gcc r14-3653] libstdc++: Add { target c++98_only } to tests Jonathan Wakely

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).