public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3652] libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only }
@ 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:0eb35092de0e55d323bd0b17c6bb28e0734dda02
commit r14-3652-g0eb35092de0e55d323bd0b17c6bb28e0734dda02
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Sep 1 21:20:55 2023 +0100
libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only }
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.
Diff:
---
.../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 3afa9fb4403f..6e6ceabad21f 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 b8f393983b1f..463ec507bd94 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
^ 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-3652] 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).