]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add explicit -std=gnu++98 to tests that use { target c++98_only }
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Sep 2023 20:20:55 +0000 (21:20 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:04:26 +0000 (16:04 +0100)
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.

libstdc++-v3/testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc
libstdc++-v3/testsuite/23_containers/list/requirements/explicit_instantiation/2.cc

index 3afa9fb4403fdda96f421696174526d50bed4693..6e6ceabad21fa890175b633a77082e3900a6d945 100644 (file)
@@ -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
index b8f393983b1f53b955e15f37ed8f8b09be6696bb..463ec507bd94fe36446bb01e3ad6209bea20cf9f 100644 (file)
@@ -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