diff --git a/libstdc++-v3/testsuite/18_support/coroutines/95917.cc b/libstdc++-v3/testsuite/18_support/coroutines/95917.cc index f6f85f4df3f942e655bb9a3ead8733348ed09bd5..8ee56ef38425f7bc88c2d4e987fd0ddae4ed788e 100644 --- a/libstdc++-v3/testsuite/18_support/coroutines/95917.cc +++ b/libstdc++-v3/testsuite/18_support/coroutines/95917.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=gnu++2a -g0" } -// { dg-do compile { target c++2a } } +// { dg-options "-g0" } +// { dg-do compile { target c++20 } } // { dg-final { scan-assembler-not "dummy_resume_destroy" } } // { dg-final { scan-assembler-not "noop_coro" } } diff --git a/libstdc++-v3/testsuite/18_support/coroutines/hash.cc b/libstdc++-v3/testsuite/18_support/coroutines/hash.cc index 81b68f8246a3e33efc138debf818cb49cea0e9a8..bddea03681e45b7f27265e9f5b4f8931e2af0d55 100644 --- a/libstdc++-v3/testsuite/18_support/coroutines/hash.cc +++ b/libstdc++-v3/testsuite/18_support/coroutines/hash.cc @@ -1,5 +1,4 @@ -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include <coroutine> #include <testsuite_hooks.h> diff --git a/libstdc++-v3/testsuite/18_support/coroutines/lwg3460.cc b/libstdc++-v3/testsuite/18_support/coroutines/lwg3460.cc index 1d4b6d21e7e60bb51d30a440aadb0d72fc14adf2..84f1ea271397d1c3e64a602132261b8527305f14 100644 --- a/libstdc++-v3/testsuite/18_support/coroutines/lwg3460.cc +++ b/libstdc++-v3/testsuite/18_support/coroutines/lwg3460.cc @@ -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 <coroutine> diff --git a/libstdc++-v3/testsuite/18_support/destroying_delete.cc b/libstdc++-v3/testsuite/18_support/destroying_delete.cc index 4012ddde0b69792646ae489f30d466191f676d39..2ee927225a0a33f6565dfbe5433d114253422f2f 100644 --- a/libstdc++-v3/testsuite/18_support/destroying_delete.cc +++ b/libstdc++-v3/testsuite/18_support/destroying_delete.cc @@ -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 <new> #include <type_traits> diff --git a/libstdc++-v3/testsuite/18_support/source_location/1.cc b/libstdc++-v3/testsuite/18_support/source_location/1.cc index 0898c9ea2941be3bc27a08052570a204da8d3369..48707b3c3e7221de6409b0dcbc81d517298f9aff 100644 --- a/libstdc++-v3/testsuite/18_support/source_location/1.cc +++ b/libstdc++-v3/testsuite/18_support/source_location/1.cc @@ -18,8 +18,8 @@ // Example from C++ Standard Working Draft N4842, November 2019 Mailing // Adapted for testing. -// { dg-options "-std=gnu++2a -include string -include stdexcept" } -// { dg-do run { target c++2a } } +// { dg-options "-include string -include stdexcept" } +// { dg-do run { target c++20 } } #include <source_location> diff --git a/libstdc++-v3/testsuite/18_support/source_location/consteval.cc b/libstdc++-v3/testsuite/18_support/source_location/consteval.cc index 92b0313593f6853841173281757558063b74b186..802054d19143cec3391dbe2d71ebc97a7c8ee560 100644 --- a/libstdc++-v3/testsuite/18_support/source_location/consteval.cc +++ b/libstdc++-v3/testsuite/18_support/source_location/consteval.cc @@ -18,8 +18,7 @@ // Example from C++ Standard Working Draft N4842, November 2019 Mailing // Adapted for testing. -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include <source_location> #include <string_view> @@ -119,7 +118,7 @@ int main () member_defaulted_sl.member.file_name()); constexpr std::string_view member_defaulted_sl_fn_name( member_defaulted_sl.member.function_name()); - static_assert(member_defaulted_sl.member.line() == 36); + static_assert(member_defaulted_sl.member.line() == 35); // closing paren of constructor declaration static_assert(member_defaulted_sl.member.column() == 25); static_assert(member_defaulted_sl_fn_name.ends_with("s::s(int)"sv)); diff --git a/libstdc++-v3/testsuite/18_support/source_location/version.cc b/libstdc++-v3/testsuite/18_support/source_location/version.cc index 540bb1abff6ba4fa0100fa31b889b5c79c29a6af..8cb59023e129758ca29c2c5e501e768dd4c64937 100644 --- a/libstdc++-v3/testsuite/18_support/source_location/version.cc +++ b/libstdc++-v3/testsuite/18_support/source_location/version.cc @@ -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 preprocess { target c++2a } } +// { dg-do preprocess { target c++20 } } #include <version> diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_category/operators/three_way.cc b/libstdc++-v3/testsuite/19_diagnostics/error_category/operators/three_way.cc index 6f41ed212553e1732fc1c68977ac421742f35300..0580017ae0dd781f1776e08a683e99296df6f81c 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/error_category/operators/three_way.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/error_category/operators/three_way.cc @@ -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 <system_error> #include <testsuite_error.h> diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_code/operators/three_way.cc b/libstdc++-v3/testsuite/19_diagnostics/error_code/operators/three_way.cc index ce659d7ab527124e5a81e8fa4fc6337b7c891534..646f2196926c45561f05a9bbb94ab1bb0894b07c 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/error_code/operators/three_way.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/error_code/operators/three_way.cc @@ -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 <system_error> #include <testsuite_error.h> diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/three_way.cc b/libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/three_way.cc index 914fbf4534fe9cb534b618b5f4d3ae8850f2faf7..e568748a63fec4183a39c3c8b0aee2808fef3c89 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/three_way.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/three_way.cc @@ -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 <system_error> #include <testsuite_error.h> diff --git a/libstdc++-v3/testsuite/19_diagnostics/stacktrace/output.cc b/libstdc++-v3/testsuite/19_diagnostics/stacktrace/output.cc index 5116413344d35ae48964f3cc7250a49528ebae0f..35389ecbd85a0e3d85bd202ba2c22f2c380db979 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/stacktrace/output.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/stacktrace/output.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++23" } // { dg-do compile { target c++23 } } // { dg-require-effective-target stacktrace } diff --git a/libstdc++-v3/testsuite/26_numerics/adjacent_difference/lwg2055.cc b/libstdc++-v3/testsuite/26_numerics/adjacent_difference/lwg2055.cc index 870ddaf5384c4fdfa0d95016e8c0c15515d1ca8e..4bd2c47fc65551a565697c7458d4d7b7c5d6a06a 100644 --- a/libstdc++-v3/testsuite/26_numerics/adjacent_difference/lwg2055.cc +++ b/libstdc++-v3/testsuite/26_numerics/adjacent_difference/lwg2055.cc @@ -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 <numeric> #include <iterator> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countl_zero.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countl_zero.cc index 5cf208a3cecfcb2dafd47806a6bebc13426e1d45..fb062c209ffde2f36498d6bee432f614b3f77bc0 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countl_zero.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countl_zero.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_one.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_one.cc index 9e9bfcce3310d4bd9532d3f55245f38e42d771e2..f63ec1e23b170c1ba9bbef386f3d4694a5a0fd35 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_one.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_one.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_zero.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_zero.cc index 044e1eab22e2df3c1c6e28a8aa504ad002c0d013..f4de8f8c22490a2a9033ff0a37349d8604e66b7c 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_zero.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/countr_zero.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/popcount.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/popcount.cc index f524e1f59a2000d4f681c48f9ba5cc65f341a7f5..53cb1da30162a97d2347a166341196ea44ea93d6 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.count/popcount.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.count/popcount.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc index 25bddf578f137031221b3db0ef6cdf0f9d6d4629..7e5ce85b60009e26418e3421cbd213c96915154a 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc b/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc index 8064eda9133ce99c77dcb642e93b4f531ad3e0eb..74fc684c40bf8c1547c177ed9b1881d97671ee68 100644 --- a/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc +++ b/libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc @@ -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 <bit> #include <limits> diff --git a/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/lwg3719.cc b/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/lwg3719.cc index e8c8f79364a13826073d2c85f907b753cef52f70..b1104203b4ee6f894f04444545f1f66dc6c8bfbe 100644 --- a/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/lwg3719.cc +++ b/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/lwg3719.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include <regex> diff --git a/libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc b/libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc index 5c36acead74b53aebfb499dee992602a7b038401..02019db71c3a5c69ca4d3b62cdda875a997b2869 100644 --- a/libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc +++ b/libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include <regex> diff --git a/libstdc++-v3/testsuite/28_regex/sub_match/compare_c++20.cc b/libstdc++-v3/testsuite/28_regex/sub_match/compare_c++20.cc index 0beaec0e1ef061cc68106a0470d16c7c6dd1c90f..d60ab41ca78ca9c98dc2ca5cf0fdfc87e3615ea6 100644 --- a/libstdc++-v3/testsuite/28_regex/sub_match/compare_c++20.cc +++ b/libstdc++-v3/testsuite/28_regex/sub_match/compare_c++20.cc @@ -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 } } // { dg-timeout-factor 2 } #include <regex> diff --git a/libstdc++-v3/testsuite/experimental/filesystem/iterators/106201.cc b/libstdc++-v3/testsuite/experimental/filesystem/iterators/106201.cc index 017b72ef5f6cf35e72fb802e3e642f81fba5fdca..425bd33eb460793134128e322e427728024b1a91 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/iterators/106201.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/iterators/106201.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } // { dg-require-filesystem-ts "" } diff --git a/libstdc++-v3/testsuite/experimental/scopeguard/exit.cc b/libstdc++-v3/testsuite/experimental/scopeguard/exit.cc index 60616d1a93f29e11f21b2e14b1d0d3e613471d92..86e8821f636f34bc5bc179ec8b75ffac3f075a7e 100644 --- a/libstdc++-v3/testsuite/experimental/scopeguard/exit.cc +++ b/libstdc++-v3/testsuite/experimental/scopeguard/exit.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include <experimental/scope> diff --git a/libstdc++-v3/testsuite/experimental/scopeguard/uniqueres.cc b/libstdc++-v3/testsuite/experimental/scopeguard/uniqueres.cc index fe9d6ee7cfc6062e0da03a4971d744a277421ced..27a427f7ea862b2d9ba64703cf7ca5492946e656 100644 --- a/libstdc++-v3/testsuite/experimental/scopeguard/uniqueres.cc +++ b/libstdc++-v3/testsuite/experimental/scopeguard/uniqueres.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include <experimental/scope>