public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7576] libstdc++: Disable std::forward_list tests for C++98 mode
@ 2023-07-18 11:00 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-07-18 11:00 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:813722fbe423ef16fbca6c16970683ef70d47f59
commit r13-7576-g813722fbe423ef16fbca6c16970683ef70d47f59
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Jul 4 23:41:50 2023 +0100
libstdc++: Disable std::forward_list tests for C++98 mode
These tests fail with -std=gnu++98/-D_GLIBCXX_DEBUG in the runtest
flags. They should require the c++11 effective target.
libstdc++-v3/ChangeLog:
* testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
Skip as UNSUPPORTED for C++98 mode.
* testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
Likewise.
(cherry picked from commit cd9964b7e2311209ffaa00b322b31c67d64ca83d)
Diff:
---
.../testsuite/23_containers/forward_list/debug/iterator1_neg.cc | 2 +-
.../testsuite/23_containers/forward_list/debug/iterator3_neg.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc
index a0e05413896..59a22f7ec89 100644
--- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc
+++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
//
-// { dg-do run { xfail *-*-* } }
+// { dg-do run { target c++11 xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <forward_list>
diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc
index bfa281ad9f4..0c4439f46ed 100644
--- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc
+++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
//
-// { dg-do run { xfail *-*-* } }
+// { dg-do run { target c++11 xfail *-*-* } }
// { dg-require-debug-mode "" }
#include <forward_list>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-18 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-18 11:00 [gcc r13-7576] libstdc++: Disable std::forward_list tests for C++98 mode 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).