[05/13] libstdc++: Remove dg-options "-std=c++20" from <span> and <cuchar> tests
Checks
Commit Message
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.
---
.../testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc | 1 -
.../testsuite/23_containers/span/contiguous_range_neg.cc | 3 +--
libstdc++-v3/testsuite/23_containers/span/everything.cc | 3 +--
3 files changed, 2 insertions(+), 5 deletions(-)
@@ -1,4 +1,3 @@
-// { dg-options "-std=c++20" }
// { dg-do compile { target c++20 } }
#include <cuchar>
@@ -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>
@@ -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>