]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from 24_iterators tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 13:27:56 +0000 (14:27 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 23:10:45 +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/24_iterators/aliases.cc: Remove dg-options
-std=gnu++2a.
* testsuite/24_iterators/associated_types/incrementable.traits.cc:
Likewise.
* testsuite/24_iterators/associated_types/iterator.traits.cc:
Likewise.
* testsuite/24_iterators/associated_types/readable.traits.cc:
Likewise.
* testsuite/24_iterators/back_insert_iterator/constexpr.cc:
Likewise.
* testsuite/24_iterators/back_insert_iterator/pr93884.cc:
Likewise.
* testsuite/24_iterators/bidirectional/concept.cc: Likewise.
* testsuite/24_iterators/common_iterator/1.cc: Likewise.
* testsuite/24_iterators/common_iterator/100823.cc: Likewise.
* testsuite/24_iterators/common_iterator/2.cc: Likewise.
* testsuite/24_iterators/contiguous/concept.cc: Likewise.
* testsuite/24_iterators/contiguous/tag.cc: Likewise.
* testsuite/24_iterators/counted_iterator/1.cc: Likewise.
* testsuite/24_iterators/counted_iterator/lwg3389.cc: Likewise.
* testsuite/24_iterators/counted_iterator/lwg3643.cc: Likewise.
* testsuite/24_iterators/customization_points/92894.cc:
Likewise.
* testsuite/24_iterators/customization_points/iter_move.cc:
Likewise.
* testsuite/24_iterators/customization_points/iter_swap.cc:
Likewise.
* testsuite/24_iterators/customization_points/lwg3420.cc:
Likewise.
* testsuite/24_iterators/forward/concept.cc: Likewise.
* testsuite/24_iterators/front_insert_iterator/constexpr.cc:
Likewise.
* testsuite/24_iterators/front_insert_iterator/pr93884.cc:
Likewise.
* testsuite/24_iterators/headers/iterator/synopsis_c++20.cc:
Likewise.
* testsuite/24_iterators/indirect_callable/92894.cc: Likewise.
* testsuite/24_iterators/indirect_callable/projected-adl.cc:
Likewise.
* testsuite/24_iterators/indirect_callable/projected.cc:
Likewise.
* testsuite/24_iterators/input/concept.cc: Likewise.
* testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
* testsuite/24_iterators/istream_iterator/cons/sentinel.cc:
Likewise.
* testsuite/24_iterators/istream_iterator/sentinel.cc: Likewise.
* testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc:
Likewise.
* testsuite/24_iterators/istreambuf_iterator/sentinel.cc:
Likewise.
* testsuite/24_iterators/move_iterator/cust.cc: Likewise.
* testsuite/24_iterators/move_iterator/dr3435.cc: Likewise.
* testsuite/24_iterators/move_iterator/input_iterator.cc:
Likewise.
* testsuite/24_iterators/move_iterator/lwg3390.cc: Likewise.
* testsuite/24_iterators/move_iterator/lwg3391.cc: Likewise.
* testsuite/24_iterators/move_iterator/move_only.cc: Likewise.
* testsuite/24_iterators/move_iterator/p2520r0.cc: Likewise.
* testsuite/24_iterators/move_iterator/rel_ops_c++20.cc:
Likewise.
* testsuite/24_iterators/move_iterator/sentinel.cc: Likewise.
* testsuite/24_iterators/normal_iterator/cmp_c++20.cc: Likewise.
* testsuite/24_iterators/output/concept.cc: Likewise.
* testsuite/24_iterators/random_access/concept.cc: Likewise.
* testsuite/24_iterators/range_access/range_access_cpp20.cc:
Likewise.
* testsuite/24_iterators/range_access/range_access_cpp20_neg.cc:
Likewise.
* testsuite/24_iterators/range_operations/100768.cc: Likewise.
* testsuite/24_iterators/range_operations/advance.cc: Likewise.
* testsuite/24_iterators/range_operations/advance_overflow.cc:
Likewise.
* testsuite/24_iterators/range_operations/distance.cc: Likewise.
* testsuite/24_iterators/range_operations/lwg3392.cc: Likewise.
* testsuite/24_iterators/range_operations/next.cc: Likewise.
* testsuite/24_iterators/range_operations/prev.cc: Likewise.
* testsuite/24_iterators/reverse_iterator/cust.cc: Likewise.
* testsuite/24_iterators/reverse_iterator/dr3435.cc: Likewise.
* testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc:
Likewise.

56 files changed:
libstdc++-v3/testsuite/24_iterators/aliases.cc
libstdc++-v3/testsuite/24_iterators/associated_types/incrementable.traits.cc
libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc
libstdc++-v3/testsuite/24_iterators/associated_types/readable.traits.cc
libstdc++-v3/testsuite/24_iterators/back_insert_iterator/constexpr.cc
libstdc++-v3/testsuite/24_iterators/back_insert_iterator/pr93884.cc
libstdc++-v3/testsuite/24_iterators/bidirectional/concept.cc
libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc
libstdc++-v3/testsuite/24_iterators/common_iterator/100823.cc
libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc
libstdc++-v3/testsuite/24_iterators/contiguous/concept.cc
libstdc++-v3/testsuite/24_iterators/contiguous/tag.cc
libstdc++-v3/testsuite/24_iterators/counted_iterator/1.cc
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc
libstdc++-v3/testsuite/24_iterators/customization_points/92894.cc
libstdc++-v3/testsuite/24_iterators/customization_points/iter_move.cc
libstdc++-v3/testsuite/24_iterators/customization_points/iter_swap.cc
libstdc++-v3/testsuite/24_iterators/customization_points/lwg3420.cc
libstdc++-v3/testsuite/24_iterators/forward/concept.cc
libstdc++-v3/testsuite/24_iterators/front_insert_iterator/constexpr.cc
libstdc++-v3/testsuite/24_iterators/front_insert_iterator/pr93884.cc
libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++20.cc
libstdc++-v3/testsuite/24_iterators/indirect_callable/92894.cc
libstdc++-v3/testsuite/24_iterators/indirect_callable/projected-adl.cc
libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc
libstdc++-v3/testsuite/24_iterators/input/concept.cc
libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc
libstdc++-v3/testsuite/24_iterators/istream_iterator/cons/sentinel.cc
libstdc++-v3/testsuite/24_iterators/istream_iterator/sentinel.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/sentinel.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/cust.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/dr3435.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/input_iterator.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/sentinel.cc
libstdc++-v3/testsuite/24_iterators/normal_iterator/cmp_c++20.cc
libstdc++-v3/testsuite/24_iterators/output/concept.cc
libstdc++-v3/testsuite/24_iterators/random_access/concept.cc
libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20.cc
libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20_neg.cc
libstdc++-v3/testsuite/24_iterators/range_operations/100768.cc
libstdc++-v3/testsuite/24_iterators/range_operations/advance.cc
libstdc++-v3/testsuite/24_iterators/range_operations/advance_overflow.cc
libstdc++-v3/testsuite/24_iterators/range_operations/distance.cc
libstdc++-v3/testsuite/24_iterators/range_operations/lwg3392.cc
libstdc++-v3/testsuite/24_iterators/range_operations/next.cc
libstdc++-v3/testsuite/24_iterators/range_operations/prev.cc
libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc
libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr3435.cc
libstdc++-v3/testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc

index 4abec9d48dc84c73fa6ea2ee1437c5f2da6e9266..89ee99694f6c042fce6e231f17bbce8c7420708d 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 <iterator>
 
index ba6c2de81dff009e1e1b709937ef010c074fe346..54f96c6cf4b1add398fd63a538b08580c044be38 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 <iterator>
 
index d7b0d170fc931a466de246e989d484ad29bece8a..f9793973717cc0b5a91848c811ae91e4b666b07a 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 <iterator>
 
index 8fc66cf51bf42f9b99a942cbac966e5276d21c51..9d0399105f1dc6071ceba6cc76589806d9db34a4 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 <iterator>
 
index 8155ec28373f861a9de5f7ca83d26c31da73e236..9bb8e961f475d8a9fa8365fb6f022766b1212af4 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 <iterator>
 
index 3a284a00d00a53515aa3de130561e7cc14195165..6e0165291816f15da1cd5a24b5af5a4c60bc4455 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 <iterator>
 #include <algorithm>
index d053ad352ef75700380a1aa2eed712ea9e0aaab4..a239ef802f28bd16238340933d19b30095cc4b15 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 <iterator>
 
index f251e3cfc04245d012f0fc5f13e7196fd37550d4..7448d914b1b0769cc819ddcbcea8e70f05209e15 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 <iterator>
 #include <testsuite_hooks.h>
index b42dd087ab2dbe99c0ff97761078a06a12988d7e..0784aec58edc1f874b74632af3222fb88b295529 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=gnu++20 -D_GLIBCXX_ASSERTIONS" }
+// { dg-options "-D_GLIBCXX_ASSERTIONS" }
 // { dg-do run { target c++20 } }
 #include <iterator>
 #include <testsuite_iterators.h>
index 8f41e276b145b77a6eede48d11bcbe0dac6490f5..4d77094fe93838118d94b65f6860d0aa54d7a1d7 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 <iterator>
 #include <testsuite_hooks.h>
index 2ce5537308cf0760c901a04d793d1f71575f5bd6..b567740267c0a90139fac02ce63bf6ee33d26e9c 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 <iterator>
 
index 308bd962eaac05e0d444654bee9ae0af51e5a555..e51c9d682566b722d8f637be983c17a3e4a6d9f6 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 <iterator>
 
index 2c3ea4ff563da4964eaa747b17c73b51f10d9af3..47b3ca23d7617992c08b4c06181b903a50dc2488 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 <iterator>
 #include <testsuite_hooks.h>
index 33f3a04d451fac349f322f981aa7a0d51f419159..0067e53b6a2c5b057e9ba82b09bc63ba856857ce 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 <iterator>
 
index e6f12b46c1238c8948761b9e26aec96eb660a7b1..e29239ef59a4d2cf90eb95808f764c0c5981bd72 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <iterator>
index 78d7a95e6b508b6fcfbb24194724722ebc1b078d..b9a33f30d17c855ae5394267b099c90b39d40068 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 <iterator>
 
index e7d8d9b16db37d7bd17c7f39bfd17debe84ad805..a5f9ef78f99314800be374845e3c9655081152dc 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 <iterator>
 #include <testsuite_hooks.h>
index 76c68594131c852fa32cfb9c5c960a6fcf5eb1e4..df0e6565343d2ed8c75311688b228ca4285d6126 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 <iterator>
 #include <testsuite_hooks.h>
index 2c522fc9e469023adf7e717f95888693c635a2e1..b2e3956997edeb998782c05d87673eeffdad079f 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 } }
 
 // PR libstdc++/93983
 
index 9711d6610ae752cf23e87819ab022e81a6663d04..70ab0beba9f651c6e1e783422f8eb1f85fa4f580 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 <iterator>
 
index 89358413268a27963e5acbbe30d3080478ccdae5..b6cbf03e4c1bf2cf357da46678b70836012ecc63 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 <iterator>
 
index 08edeb3a482961ca31c72d646c593cda66d64cff..d1b47a69f3fd524e5b232b60f0024d2b4ff664c6 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 <iterator>
 #include <algorithm>
index ff0b6fac3fb67da78c00a14ac1cca4f605c3e738..f8d5119caf9da71bad9efda83fdf383e636d87e3 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 } }
 // { dg-require-normal-namespace "" }
 
 #include <iterator>
index 951b3ba682013bc8739d346d6c52e88a637939e9..1fb1b8d3478333acaf2fdef69fea418025874de1 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 <iterator>
 
index 4c2a0955c6e16e41776690718a91e2e0a9ff2c58..a1a5cc4392dda6fe03680673a72562b4b72ecd82 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // P2538R1 ADL-proof std::projected
index f67e989f3c0340363e57aed528c09f2d82be5633..755d5a729cc2275429ef4feacaf55c5d506160e6 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 <iterator>
 
index 44aa7e9deae64fad23d0108252eba74e6cdbb723..08e4e38b93cb44775c9257a67abeded426331dda 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 <iterator>
 
index 88487592acb6323debf9ce272e47b74e3148d237..ed2b64885166ff3becf504902b96cf03a4a6eff1 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 <iterator>
 
index 77dc741b1beb27e80e67fdadf3a8b1ea64d59269..cbf647aa45b9de1e2acc03dd0d50fa3c38a4484d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
index eecfba72d06325a6341612db4631fe1d1551faf1..d14ec8f9530b6abc709f1b675ae6409746e2ec58 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
index 93017809f67a65bcf2d94658ac599c316d75870d..c78f763d3d493df08587234be9deaac1740e0cb5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
index 9368833fcf27e2e75cc055d76868537b7805ee52..0b10a147404e45291417aaed951b1867a628fff3 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
index b8e38bb810b9243ca195ee304b71557d4e725016..3d73919391f53d0d9dde8819f41b61b78e62086b 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 <iterator>
 #include <testsuite_hooks.h>
index fbca6fe9d36f6cb99a890cc9e5e03df8629c1d1a..80da4c0e13410f820825a42c1fa1e7d0a63132e1 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 <iterator>
 #include <compare>
index adaa12a5d7167aa97672601369052e238ac26036..ae53ecf572e2c1df775020778f2c668a1693fa12 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 <iterator>
 #include <testsuite_hooks.h>
index a6b57bf3a0c35de91d6910cc7d7ed7d20563fb60..d0adabf6ac0c1f37175c52d2abe42757febc2d6d 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 <iterator>
 
index 5f454e107fcf95651c05df952a87176cf813a228..40b9da95223de29d709b311fdb8250db93dd0cdd 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 } }
 
 // Verify LWG 3391 changes.
 
index 01b66d2fea835c5ffd75d523a06b6dc61a5066c3..3a0e499b22c0fc955a8515c782a7e1ca16cb66f5 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 <iterator>
 
index e36ac574a8ecba4a9d0f2a33f9bc7ca28371a813..4742e8815e44b33cba6aa56813a012d6661be74a 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-add-options no_pch }
 
index 9f437acb50a65f488dc24eee7de7dc44fc2c1a35..292baeaaf3160686b23eb177f0329327dae4b850 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 <iterator>
 
index 4ee8e46a822718925c6a90c700419d98a7aa0e7b..a76a5801c684b4a659c109b35de23bcf9081b65b 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 <iterator>
 #include <testsuite_hooks.h>
index 82b856883b4764d90f51607a6f5a737ea93417f0..da464c9bc2bc744de70f2548e69e26ecab779bc8 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 <iterator>
 #include <vector>
index 9be1c14884ff7627deda6ed62834133b8aa6ce51..f3551bd98dfe806d315bb856d8f2bee49920c09e 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 <iterator>
 
index 0ed9ded8ce5c95ef843da04f9a7895f26faf7799..c26a4269f9819a4f88c2ce89e90f3a4cb7826aed 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 <iterator>
 
index 99852ebf991b6e949d9c92c7d0005f40a6222bff..e5e129e80f44c8e6b2de7beda0962c063139e83f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
index af65deda3d4b1f5be3b69967b05ec9f97a9dd205..03b8a3767bd7458239efe47eece29201b1856d32 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 <iterator>
 
index 0c0b79cdbb6a52105cfec0f9005615c416f34a07..c9f3827c61fe3fbe41ac1ce4344c62c31ca36c9f 100644 (file)
@@ -15,7 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // PR libstdc++/100768 - Range iterator operations should be function objects
index 62ff47e19d5b28704743bffb09aacff74304adbd..43d6877e300eea608fedfdfa5944fa8c03c8587e 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 <iterator>
 #include <testsuite_hooks.h>
index 0fadcd6e99a4d7bc93a0a4a33f80b7c348bb3cd8..76babddd55598e7d8829ff977afe636ece05d763 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // Public domain testcase from Casey Carter, send to LWG list on 2021-07-24.
index 77dc5e8fbbf08b3eb2f7d2e6e7d56e40afddbbca..57530d6bac1fc9638bd50dabca4b17ab21f1c188 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 <iterator>
 #include <testsuite_hooks.h>
index 3278035351291cadcb1b5beea3a515a3b4e0e722..4125c663692cc68885477f5e7ce2f855a226ccec 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <iterator>
index ef2a73805fbb5ecccbc494a08cb254f3d83ed70e..6a88e87831b9d1f5c760403c725e9eb76ebdf36a 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 <iterator>
 #include <testsuite_hooks.h>
index 123b4a80ab445aa8b2dfd316a928b656bac576fc..a40054757a6222742661a08985f0c9625ba53fb4 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 <iterator>
 #include <testsuite_hooks.h>
index 77f4e08420fbf9b622f1cdd9a0a5b47030126a49..5bf40aeaabeb57c2e60348f6478bc0b3a9f30933 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 <iterator>
 #include <testsuite_hooks.h>
index dd5afc94604103553ec3949781632c3ce70f735a..4263a860c8d3596317bd3498649ab9259ce9f434 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 <iterator>
 #include <compare>
index 8911d8a2a18a31a98aa4946f75403e89ced2487d..cb7543a85578335f3b8e59a0ef6463bafc3e3c2c 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 <iterator>