]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Replace dg-options "-std=c++11" with dg-add-options strict_std
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 13:10:15 +0000 (14:10 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 20:57:38 +0000 (21:57 +0100)
These tests can (and should) also be run for later standards, so replace
the { dg-options "-std=c++11" } with { dg-add-options strict_std } and a
target selector for c++11.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/deque/48101-2_neg.cc: Replace
dg-options with target selector.
* testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise.
* testsuite/23_containers/list/48101-2_neg.cc: Likewise.
* testsuite/23_containers/map/48101-2_neg.cc: Likewise.
* testsuite/23_containers/map/48101_neg.cc: Likewise.
* testsuite/23_containers/multimap/48101-2_neg.cc: Likewise.
* testsuite/23_containers/multimap/48101_neg.cc: Likewise.
* testsuite/23_containers/multiset/48101-2_neg.cc: Likewise.
* testsuite/23_containers/set/48101-2_neg.cc: Likewise.
* testsuite/23_containers/unordered_map/48101-2_neg.cc:
Likewise.
* testsuite/23_containers/unordered_multimap/48101-2_neg.cc:
Likewise.
* testsuite/23_containers/unordered_multiset/48101-2_neg.cc:
Likewise.
* testsuite/23_containers/unordered_set/48101-2_neg.cc:
Likewise.
* testsuite/23_containers/vector/48101-2_neg.cc: Likewise.

14 files changed:
libstdc++-v3/testsuite/23_containers/deque/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/list/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/map/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/map/48101_neg.cc
libstdc++-v3/testsuite/23_containers/multimap/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/multimap/48101_neg.cc
libstdc++-v3/testsuite/23_containers/multiset/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/set/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_map/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_multiset/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_set/48101-2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/48101-2_neg.cc

index 041f0cb88b3a5d3afde2be482b41c29d256000b8..d5cb13ec4dbe269c13fd7d30a2fce649582cfc1f 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <deque>
 
index 2a21876c1cf2b5c16cf2605710eb13f4e2c45d28..d5cc81c6b48e9a1c3103e53785532b8d8dd67657 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <forward_list>
 
index 0e96022cdfe1b6d71dd2848850b7570450bf6930..5cea21992d9175727f005ddde96c9f97fe27e819 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <list>
 
index 06c4dc9e9ef04c89a6071341b1829607eff8bfc9..8cda993e2cbb48384de856cf16ee003287c840f2 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <map>
 
index e9029caad2164949997fa4a391dec73407e2f3cc..81837954125b202f086d6047449c468750e8d78d 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <map>
 
index fd77071a2a516ef5f6874348799e75dcab2692dc..6022039e00474014a002382981854db0cc9d1e96 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <map>
 
index 942a5aaf2fff7fd55d0515f509ed3eedaefe5813..55626edfc2d1fdbc9bb6987dc63a385f1ca1a4f3 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
 
 #include <map>
 
index c1c1f64d6c5b232ebe240b4a7e3818d6c3ad1da5..619b97ee4a54edf7277fa5dc9a43aa27c4b32cdd 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <set>
 
index 6466b38901defce5d2cc947eddcd70b631be1ad1..d83a08c985605407a5a7c73c7516ffa8ac9b9f65 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <set>
 
index 8ea74e6c04b9dbcf24fc93edabbf19344c545cc3..c45ef0daa50d2a27a47bd7a8765e7617dec2e1db 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <unordered_map>
 
index 38afec91b3491bb5bbe337443c8f9e97b3f7285c..39eeb0f76d8822948349a567d18a5a3e9bc7623e 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <unordered_map>
 
index 389cb947cbe86059e49745190f3bc005e0e50a0d..006716e0d69b4b707a4fbf4b26e72efd3976ca76 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <unordered_set>
 
index 08ef3b587a440bfa117fe203e6b898c6865b9f47..ed5a7787525b4ea6a7d376ebed80c85d99f4a978 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <unordered_set>
 
index ed5111224e9c3cda779ce911202ca4dd1c8abb9a..0dd75956ce65c3c6a4bd86e17e8cbcfa6e8a3704 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do compile }
-// { dg-options "-std=c++11" }
+// { dg-do compile { target c++11 } }
+// { dg-add-options strict_std }
 
 #include <vector>
 
This page took 0.078033 seconds and 5 git commands to generate.