]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=c++20" from <span> and <cuchar> tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 15:01:16 +0000 (16:01 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 20:57:39 +0000 (21:57 +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.

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.

libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc
libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc
libstdc++-v3/testsuite/23_containers/span/everything.cc

index df68fb7c82f8b536c1594f78134a1a0966043ed9..1964803cbd1b861a4f2e15478260486aba3e09ba 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=c++20" }
 // { dg-do compile { target c++20 } }
 
 #include <cuchar>
index d5f6492205274683a8ec389df501aed2d960e567..2ed44740a86cd1eb2e42ca0449e817e163dd4170 100644 (file)
@@ -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>
index 74f943e937f91e77255462ceb67e81ad17134189..31c17346dd3e96d8a88a2f2ede96729256c8ab8b 100644 (file)
@@ -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>