* [committed] libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only }
@ 2023-09-04 16:29 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-09-04 16:29 UTC (permalink / raw)
To: libstdc++, gcc-patches
Tested x86_64-linux. Pushed to trunk.
-- >8 --
libstdc++-v3/ChangeLog:
* testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
Add dg-options to restrict the test to C++98 mode.
* testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
Likewise.
---
.../23_containers/deque/requirements/explicit_instantiation/2.cc | 1 +
.../23_containers/list/requirements/explicit_instantiation/2.cc | 1 +
2 files changed, 2 insertions(+)
diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc
index 3afa9fb4403..6e6ceabad21 100644
--- a/libstdc++-v3/testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc
+++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc
@@ -21,6 +21,7 @@
#include <deque>
#include <testsuite_api.h>
+// { dg-options "-std=gnu++98" }
// { dg-do compile { target c++98_only } }
// N.B. Since C++11 we cannot instantiate with T == NonDefaultConstructible
diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/2.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/2.cc
index b8f393983b1..463ec507bd9 100644
--- a/libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/2.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/2.cc
@@ -21,6 +21,7 @@
#include <list>
#include <testsuite_api.h>
+// { dg-options "-std=gnu++98" }
// { dg-do compile { target c++98_only } }
// N.B. Since C++11 we cannot instantiate with T == NonDefaultConstructible
--
2.41.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-04 16:29 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:29 [committed] libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only } 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).