aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/18_support
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-15 14:05:07 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-16 00:10:44 +0100
commit771752c4e3b27cf8870155ed1ebefcc42352b16e (patch)
tree33461792c272a5141a5bab2b7ac951fa3a24486d /libstdc++-v3/testsuite/18_support
parent1b13c424da4d2d5e3505ba47786a4ac4f3efb177 (diff)
downloadgcc-771752c4e3b27cf8870155ed1ebefcc42352b16e.zip
gcc-771752c4e3b27cf8870155ed1ebefcc42352b16e.tar.gz
gcc-771752c4e3b27cf8870155ed1ebefcc42352b16e.tar.bz2
libstdc++: Remove dg-options "-std=gnu++20" from <compare> tests
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.
Diffstat (limited to 'libstdc++-v3/testsuite/18_support')
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc1
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc1
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc4
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/common/1.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc3
-rw-r--r--libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc3
13 files changed, 12 insertions, 24 deletions
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc
index 8bf78fa..da8aaee 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
#include <compare>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc
index 7c186e6..d83bb00 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc
index be64071..c97f314 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc
index e28fcac..135cba2 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
#include <compare>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc
index a66ca6a..1ff471f 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc
index 624f114..47092b9 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc
index 818f5a1..57fe68a 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc
index 8799974..e23c571 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc
index a0f6eb3..8667337 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc
index 17a129b..9d2115b 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc
index f9acf16..7050e75 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc
index 82e1d72..15178f7 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc
index f042ce0..b9a3cf5 100644
--- a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc
+++ b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc
@@ -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>