]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable std::forward_list tests for C++98 mode
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Jul 2023 22:41:50 +0000 (23:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 5 Jul 2023 06:39:04 +0000 (07:39 +0100)
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.

libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc

index a0e05413896e82e8b2083907c296502fa07b0cc6..59a22f7ec89473f19f950c3c12ce45ee732615f2 100644 (file)
@@ -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>
index bfa281ad9f4c11fc649cc29e5ad3215bbfc75289..0c4439f46ede24c7bdae21a7c970dbcabbf938f9 100644 (file)
@@ -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>