]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from <compare> tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 13:05:07 +0000 (14:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 23:10:44 +0000 (00:10 +0100)
The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well.

libstdc++-v3/ChangeLog:

* testsuite/18_support/comparisons/algorithms/fallback.cc:
Remove dg-options -std=gnu++2a.
* testsuite/18_support/comparisons/algorithms/partial_order.cc:
Likewise.
* testsuite/18_support/comparisons/algorithms/strong_order.cc:
Likewise.
* testsuite/18_support/comparisons/algorithms/strong_order_floats.cc:
Likewise.
* testsuite/18_support/comparisons/algorithms/weak_order.cc:
Likewise.
* testsuite/18_support/comparisons/categories/94565.cc:
Likewise.
* testsuite/18_support/comparisons/categories/partialord.cc:
Likewise.
* testsuite/18_support/comparisons/categories/strongord.cc:
Likewise.
* testsuite/18_support/comparisons/categories/weakord.cc:
Likewise.
* testsuite/18_support/comparisons/categories/zero_neg.cc:
Likewise.
* testsuite/18_support/comparisons/common/1.cc: Likewise.
* testsuite/18_support/comparisons/object/93479.cc: Likewise.
* testsuite/18_support/comparisons/object/lwg3530.cc: Likewise.

13 files changed:
libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc
libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc
libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc
libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc
libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc
libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc
libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc
libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc
libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc
libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc
libstdc++-v3/testsuite/18_support/comparisons/common/1.cc
libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc
libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc

index 8bf78faf232039bff3c1feef4b965439bc074818..da8aaeedcb404dccf50881ac0dd09f238ea3ab9d 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <compare>
index 7c186e607b48f1415bf5aec6d1803106f4f03f38..d83bb00016042e7f5a274476a975d161260bf352 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <compare>
 #include <limits>
index be640714245275475a267e189a21f4309a6d9c6e..c97f31442db5810bd5b21639c67dbeccd25fca27 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 #include <limits>
index e28fcac6e1132edf31457feaee813b8e3c8fcc43..135cba2e6588345a6fa0c6ad870f75f7b55f585c 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <compare>
index a66ca6a51e070521e7d4b69163d5459bfa327d41..1ff471f7203d229ed8fd13843ffbedb5471fc9fa 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <compare>
 #include <limits>
index 624f114204d7631d5ba6dc7d8e52ca58771c4bfd..47092b9116c6a4d931dc49013708853ed4e49c95 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index 818f5a17b15803feeddb96af5a7dcf73f6dcb569..57fe68a3d8216ba47ff13645f122b870d3e64751 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index 8799974153652bad0b0bd0936c117a6b88294501..e23c571c9097a425f48b935de93f57d7c116a332 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index a0f6eb3677c75e85803158bf54d7b8f294694b72..866733741f8e7fb2a5050ea5351a137ec64a06b6 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index 17a129bcb75a1bc3f21f89749b375c1bfdf8cd8c..9d2115b3f4f78697c932ac0f9102e338215ebd82 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -Wno-unused-result" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-Wno-unused-result" }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index f9acf163ed034446164738b731a08f14bf8d75ca..7050e75327ac14f08340bcef8830c3b235e9e572 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index 82e1d72f03de801cc5195354f2d2cdd93a3abc13..15178f7c27f3019fcc9eadb9d127ea76005898b5 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>
 
index f042ce0f1dc77a2ccbc82b012043140ac1656f8e..b9a3cf55ee6efe2d9bcc534c3d13c3f356a118fd 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <compare>