From: Jonathan Wakely Date: Fri, 15 Sep 2023 13:27:56 +0000 (+0100) Subject: libstdc++: Remove dg-options "-std=gnu++20" from 24_iterators tests X-Git-Tag: basepoints/gcc-15~6072 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762baaf0267857d83fb7ca92e9c5b4edbd7a9745;p=thirdparty%2Fgcc.git libstdc++: Remove dg-options "-std=gnu++20" from 24_iterators 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/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. --- diff --git a/libstdc++-v3/testsuite/24_iterators/aliases.cc b/libstdc++-v3/testsuite/24_iterators/aliases.cc index 4abec9d48dc8..89ee99694f6c 100644 --- a/libstdc++-v3/testsuite/24_iterators/aliases.cc +++ b/libstdc++-v3/testsuite/24_iterators/aliases.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/associated_types/incrementable.traits.cc b/libstdc++-v3/testsuite/24_iterators/associated_types/incrementable.traits.cc index ba6c2de81dff..54f96c6cf4b1 100644 --- a/libstdc++-v3/testsuite/24_iterators/associated_types/incrementable.traits.cc +++ b/libstdc++-v3/testsuite/24_iterators/associated_types/incrementable.traits.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc b/libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc index d7b0d170fc93..f9793973717c 100644 --- a/libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc +++ b/libstdc++-v3/testsuite/24_iterators/associated_types/iterator.traits.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/associated_types/readable.traits.cc b/libstdc++-v3/testsuite/24_iterators/associated_types/readable.traits.cc index 8fc66cf51bf4..9d0399105f1d 100644 --- a/libstdc++-v3/testsuite/24_iterators/associated_types/readable.traits.cc +++ b/libstdc++-v3/testsuite/24_iterators/associated_types/readable.traits.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/constexpr.cc b/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/constexpr.cc index 8155ec28373f..9bb8e961f475 100644 --- a/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/constexpr.cc +++ b/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/constexpr.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/pr93884.cc b/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/pr93884.cc index 3a284a00d00a..6e0165291816 100644 --- a/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/pr93884.cc +++ b/libstdc++-v3/testsuite/24_iterators/back_insert_iterator/pr93884.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/bidirectional/concept.cc b/libstdc++-v3/testsuite/24_iterators/bidirectional/concept.cc index d053ad352ef7..a239ef802f28 100644 --- a/libstdc++-v3/testsuite/24_iterators/bidirectional/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/bidirectional/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc b/libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc index f251e3cfc042..7448d914b1b0 100644 --- a/libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc +++ b/libstdc++-v3/testsuite/24_iterators/common_iterator/1.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/common_iterator/100823.cc b/libstdc++-v3/testsuite/24_iterators/common_iterator/100823.cc index b42dd087ab2d..0784aec58edc 100644 --- a/libstdc++-v3/testsuite/24_iterators/common_iterator/100823.cc +++ b/libstdc++-v3/testsuite/24_iterators/common_iterator/100823.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++20 -D_GLIBCXX_ASSERTIONS" } +// { dg-options "-D_GLIBCXX_ASSERTIONS" } // { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc b/libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc index 8f41e276b145..4d77094fe938 100644 --- a/libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc +++ b/libstdc++-v3/testsuite/24_iterators/common_iterator/2.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/contiguous/concept.cc b/libstdc++-v3/testsuite/24_iterators/contiguous/concept.cc index 2ce5537308cf..b567740267c0 100644 --- a/libstdc++-v3/testsuite/24_iterators/contiguous/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/contiguous/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/contiguous/tag.cc b/libstdc++-v3/testsuite/24_iterators/contiguous/tag.cc index 308bd962eaac..e51c9d682566 100644 --- a/libstdc++-v3/testsuite/24_iterators/contiguous/tag.cc +++ b/libstdc++-v3/testsuite/24_iterators/contiguous/tag.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/counted_iterator/1.cc b/libstdc++-v3/testsuite/24_iterators/counted_iterator/1.cc index 2c3ea4ff563d..47b3ca23d761 100644 --- a/libstdc++-v3/testsuite/24_iterators/counted_iterator/1.cc +++ b/libstdc++-v3/testsuite/24_iterators/counted_iterator/1.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc b/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc index 33f3a04d451f..0067e53b6a2c 100644 --- a/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc +++ b/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc b/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc index e6f12b46c123..e29239ef59a4 100644 --- a/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc +++ b/libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3643.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/customization_points/92894.cc b/libstdc++-v3/testsuite/24_iterators/customization_points/92894.cc index 78d7a95e6b50..b9a33f30d17c 100644 --- a/libstdc++-v3/testsuite/24_iterators/customization_points/92894.cc +++ b/libstdc++-v3/testsuite/24_iterators/customization_points/92894.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/customization_points/iter_move.cc b/libstdc++-v3/testsuite/24_iterators/customization_points/iter_move.cc index e7d8d9b16db3..a5f9ef78f993 100644 --- a/libstdc++-v3/testsuite/24_iterators/customization_points/iter_move.cc +++ b/libstdc++-v3/testsuite/24_iterators/customization_points/iter_move.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/customization_points/iter_swap.cc b/libstdc++-v3/testsuite/24_iterators/customization_points/iter_swap.cc index 76c68594131c..df0e6565343d 100644 --- a/libstdc++-v3/testsuite/24_iterators/customization_points/iter_swap.cc +++ b/libstdc++-v3/testsuite/24_iterators/customization_points/iter_swap.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/customization_points/lwg3420.cc b/libstdc++-v3/testsuite/24_iterators/customization_points/lwg3420.cc index 2c522fc9e469..b2e3956997ed 100644 --- a/libstdc++-v3/testsuite/24_iterators/customization_points/lwg3420.cc +++ b/libstdc++-v3/testsuite/24_iterators/customization_points/lwg3420.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } // PR libstdc++/93983 diff --git a/libstdc++-v3/testsuite/24_iterators/forward/concept.cc b/libstdc++-v3/testsuite/24_iterators/forward/concept.cc index 9711d6610ae7..70ab0beba9f6 100644 --- a/libstdc++-v3/testsuite/24_iterators/forward/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/forward/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/constexpr.cc b/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/constexpr.cc index 89358413268a..b6cbf03e4c1b 100644 --- a/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/constexpr.cc +++ b/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/constexpr.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/pr93884.cc b/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/pr93884.cc index 08edeb3a4829..d1b47a69f3fd 100644 --- a/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/pr93884.cc +++ b/libstdc++-v3/testsuite/24_iterators/front_insert_iterator/pr93884.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++20.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++20.cc index ff0b6fac3fb6..f8d5119caf9d 100644 --- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++20.cc +++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++20.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } // { dg-require-normal-namespace "" } #include diff --git a/libstdc++-v3/testsuite/24_iterators/indirect_callable/92894.cc b/libstdc++-v3/testsuite/24_iterators/indirect_callable/92894.cc index 951b3ba68201..1fb1b8d34783 100644 --- a/libstdc++-v3/testsuite/24_iterators/indirect_callable/92894.cc +++ b/libstdc++-v3/testsuite/24_iterators/indirect_callable/92894.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected-adl.cc b/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected-adl.cc index 4c2a0955c6e1..a1a5cc4392dd 100644 --- a/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected-adl.cc +++ b/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected-adl.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } // P2538R1 ADL-proof std::projected diff --git a/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc b/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc index f67e989f3c03..755d5a729cc2 100644 --- a/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc +++ b/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/input/concept.cc b/libstdc++-v3/testsuite/24_iterators/input/concept.cc index 44aa7e9deae6..08e4e38b93cb 100644 --- a/libstdc++-v3/testsuite/24_iterators/input/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/input/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc b/libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc index 88487592acb6..ed2b64885166 100644 --- a/libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc +++ b/libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/istream_iterator/cons/sentinel.cc b/libstdc++-v3/testsuite/24_iterators/istream_iterator/cons/sentinel.cc index 77dc741b1beb..cbf647aa45b9 100644 --- a/libstdc++-v3/testsuite/24_iterators/istream_iterator/cons/sentinel.cc +++ b/libstdc++-v3/testsuite/24_iterators/istream_iterator/cons/sentinel.cc @@ -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. // diff --git a/libstdc++-v3/testsuite/24_iterators/istream_iterator/sentinel.cc b/libstdc++-v3/testsuite/24_iterators/istream_iterator/sentinel.cc index eecfba72d063..d14ec8f9530b 100644 --- a/libstdc++-v3/testsuite/24_iterators/istream_iterator/sentinel.cc +++ b/libstdc++-v3/testsuite/24_iterators/istream_iterator/sentinel.cc @@ -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. // diff --git a/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc b/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc index 93017809f67a..c78f763d3d49 100644 --- a/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc +++ b/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc @@ -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. diff --git a/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/sentinel.cc b/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/sentinel.cc index 9368833fcf27..0b10a147404e 100644 --- a/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/sentinel.cc +++ b/libstdc++-v3/testsuite/24_iterators/istreambuf_iterator/sentinel.cc @@ -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. // diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/cust.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/cust.cc index b8e38bb810b9..3d73919391f5 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/cust.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/cust.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/dr3435.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/dr3435.cc index fbca6fe9d36f..80da4c0e1341 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/dr3435.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/dr3435.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/input_iterator.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/input_iterator.cc index adaa12a5d716..ae53ecf572e2 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/input_iterator.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/input_iterator.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc index a6b57bf3a0c3..d0adabf6ac0c 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc index 5f454e107fcf..40b9da95223d 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } // Verify LWG 3391 changes. diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc index 01b66d2fea83..3a0e499b22c0 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc index e36ac574a8ec..4742e8815e44 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } // { dg-add-options no_pch } diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc index 9f437acb50a6..292baeaaf316 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/sentinel.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/sentinel.cc index 4ee8e46a8227..a76a5801c684 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/sentinel.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/sentinel.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/normal_iterator/cmp_c++20.cc b/libstdc++-v3/testsuite/24_iterators/normal_iterator/cmp_c++20.cc index 82b856883b47..da464c9bc2bc 100644 --- a/libstdc++-v3/testsuite/24_iterators/normal_iterator/cmp_c++20.cc +++ b/libstdc++-v3/testsuite/24_iterators/normal_iterator/cmp_c++20.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/output/concept.cc b/libstdc++-v3/testsuite/24_iterators/output/concept.cc index 9be1c14884ff..f3551bd98dfe 100644 --- a/libstdc++-v3/testsuite/24_iterators/output/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/output/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/random_access/concept.cc b/libstdc++-v3/testsuite/24_iterators/random_access/concept.cc index 0ed9ded8ce5c..c26a4269f981 100644 --- a/libstdc++-v3/testsuite/24_iterators/random_access/concept.cc +++ b/libstdc++-v3/testsuite/24_iterators/random_access/concept.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20.cc b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20.cc index 99852ebf991b..e5e129e80f44 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20.cc @@ -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. // diff --git a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20_neg.cc b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20_neg.cc index af65deda3d4b..03b8a3767bd7 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20_neg.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp20_neg.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/100768.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/100768.cc index 0c0b79cdbb6a..c9f3827c61fe 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/100768.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/100768.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } // PR libstdc++/100768 - Range iterator operations should be function objects diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/advance.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/advance.cc index 62ff47e19d5b..43d6877e300e 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/advance.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/advance.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/advance_overflow.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/advance_overflow.cc index 0fadcd6e99a4..76babddd5559 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/advance_overflow.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/advance_overflow.cc @@ -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. diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/distance.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/distance.cc index 77dc5e8fbbf0..57530d6bac1f 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/distance.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/distance.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/lwg3392.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/lwg3392.cc index 327803535129..4125c663692c 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/lwg3392.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/lwg3392.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/next.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/next.cc index ef2a73805fbb..6a88e87831b9 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/next.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/next.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/range_operations/prev.cc b/libstdc++-v3/testsuite/24_iterators/range_operations/prev.cc index 123b4a80ab44..a40054757a62 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_operations/prev.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_operations/prev.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc index 77f4e08420fb..5bf40aeaabeb 100644 --- a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc +++ b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr3435.cc b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr3435.cc index dd5afc946041..4263a860c8d3 100644 --- a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr3435.cc +++ b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr3435.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc index 8911d8a2a18a..cb7543a85578 100644 --- a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc +++ b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include