aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-04 16:01:16 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-15 21:57:39 +0100
commit5d066729ff0b9c9a2aae975244bb96f8e55e7d08 (patch)
tree1a3e73a741d99e99c7ff0b18ac5ec0ddaff845c4
parent07c602bbbd5134a03b363009abe927d0761e5ff0 (diff)
downloadgcc-5d066729ff0b9c9a2aae975244bb96f8e55e7d08.zip
gcc-5d066729ff0b9c9a2aae975244bb96f8e55e7d08.tar.gz
gcc-5d066729ff0b9c9a2aae975244bb96f8e55e7d08.tar.bz2
libstdc++: Remove dg-options "-std=c++20" from <span> and <cuchar> 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. There doesn't seem to be any reason they need to use strict -std=c++20 mode, so don't add the { dg-add-options strict_std } directive, just let them use strict or non-strict modes. libstdc++-v3/ChangeLog: * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc: Remove dg-options. * testsuite/23_containers/span/contiguous_range_neg.cc: Likewise. * testsuite/23_containers/span/everything.cc: Likewise.
-rw-r--r--libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc1
-rw-r--r--libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc3
-rw-r--r--libstdc++-v3/testsuite/23_containers/span/everything.cc3
3 files changed, 2 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc
index df68fb7..1964803 100644
--- a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc
+++ b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc
@@ -1,4 +1,3 @@
-// { dg-options "-std=c++20" }
// { dg-do compile { target c++20 } }
#include <cuchar>
diff --git a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc
index d5f6492..2ed4474 100644
--- a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc
+++ b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc
@@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=c++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
#include <span>
#include <deque>
diff --git a/libstdc++-v3/testsuite/23_containers/span/everything.cc b/libstdc++-v3/testsuite/23_containers/span/everything.cc
index 74f943e..31c1734 100644
--- a/libstdc++-v3/testsuite/23_containers/span/everything.cc
+++ b/libstdc++-v3/testsuite/23_containers/span/everything.cc
@@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=c++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
#include <testsuite_hooks.h>