From: Jonathan Wakely Date: Mon, 10 May 2021 15:22:54 +0000 (+0100) Subject: libstdc++: Remove redundant -std=gnu++17 option from remaining tests X-Git-Tag: releases/gcc-11.2.0~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0161bba22d41f731cfa40290120110acdb9f26ab;p=thirdparty%2Fgcc.git libstdc++: Remove redundant -std=gnu++17 option from remaining tests GCC defaults to -std=gnu++17 now anyway, and using it explicitly in the dg-options directive prevents running these tests with different modes such as -std=c++17 or -std=gnu++20. libstdc++-v3/ChangeLog: * testsuite/17_intro/headers/c++2017/all_attributes.cc: Remove -std=gnu++17 from dg-options directive. * testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: Likewise. * testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: Likewise. * testsuite/17_intro/headers/c++2017/operator_names.cc: Likewise. * testsuite/17_intro/headers/c++2017/parallel_mode.cc: Likewise. * testsuite/17_intro/headers/c++2017/stdc++.cc: Likewise. * testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc: Likewise. * testsuite/18_support/aligned_alloc/aligned_alloc.cc: Likewise. * testsuite/18_support/byte/81076.cc: Likewise. * testsuite/18_support/byte/global_neg.cc: Likewise. * testsuite/18_support/byte/ops.cc: Likewise. * testsuite/18_support/byte/requirements.cc: Likewise. * testsuite/18_support/headers/cfloat/values_c++17.cc: Likewise. * testsuite/18_support/launder/1.cc: Likewise. * testsuite/18_support/launder/nodiscard.cc: Likewise. * testsuite/18_support/launder/requirements.cc: Likewise. * testsuite/18_support/launder/requirements_neg.cc: Likewise. * testsuite/18_support/new_aligned.cc: Likewise. * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: Likewise. * testsuite/19_diagnostics/error_code/is_error_code_v.cc: Likewise. * testsuite/19_diagnostics/error_condition/hash.cc: Likewise. * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise. * testsuite/20_util/as_const/1.cc: Likewise. * testsuite/20_util/as_const/rvalue_neg.cc: Likewise. * testsuite/20_util/bind/83427.cc: Likewise. * testsuite/20_util/bind/is_placeholder_v.cc: Likewise. * testsuite/20_util/bool_constant/requirements.cc: Likewise. * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise. * testsuite/20_util/duration/requirements/treat_as_floating_point_v.cc: Likewise. * testsuite/20_util/duration_cast/rounding.cc: Likewise. * testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc: Likewise. * testsuite/20_util/from_chars/1_neg.cc: Likewise. * testsuite/20_util/from_chars/requirements.cc: Likewise. * testsuite/20_util/function/91456.cc: Likewise. * testsuite/20_util/function/cons/deduction.cc: Likewise. * testsuite/20_util/function_objects/83607.cc: Likewise. * testsuite/20_util/function_objects/invoke/59768.cc: Likewise. * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise. * testsuite/20_util/function_objects/not_fn/1.cc: Likewise. * testsuite/20_util/function_objects/not_fn/87538.cc: Likewise. * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc: Likewise. * testsuite/20_util/has_unique_object_representations/value.cc: Likewise. * testsuite/20_util/hash/nullptr.cc: Likewise. * testsuite/20_util/in_place/requirements.cc: Likewise. * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_aggregate/value.cc: Likewise. * testsuite/20_util/is_invocable/83395.cc: Likewise. * testsuite/20_util/is_invocable/91456.cc: Likewise. * testsuite/20_util/is_invocable/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_invocable/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_invocable/value.cc: Likewise. * testsuite/20_util/is_literal_type/deprecated-1z.cc: Likewise. * testsuite/20_util/is_nothrow_constructible/94003.cc: Likewise. * testsuite/20_util/is_nothrow_invocable/83395.cc: Likewise. * testsuite/20_util/is_nothrow_invocable/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_nothrow_invocable/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise. * testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_nothrow_swappable/value.cc: Likewise. * testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_nothrow_swappable_with/value.cc: Likewise. * testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_swappable/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_swappable/value.cc: Likewise. * testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/is_swappable_with/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_swappable_with/value.cc: Likewise. * testsuite/20_util/logical_traits/83134.cc: Likewise. * testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc: Likewise. * testsuite/20_util/logical_traits/requirements/typedefs.cc: Likewise. * testsuite/20_util/logical_traits/value.cc: Likewise. * testsuite/20_util/pair/cons/deduction.cc: Likewise. * testsuite/20_util/pair/swap_cxx17.cc: Likewise. * testsuite/20_util/ratio/requirements/ratio_equal_v.cc: Likewise. * testsuite/20_util/reference_wrapper/83427.cc: Likewise. * testsuite/20_util/reference_wrapper/deduction.cc: Likewise. * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise. * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise. * testsuite/20_util/shared_ptr/requirements/weak_type.cc: Likewise. * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise. * testsuite/20_util/time_point_cast/rounding.cc: Likewise. * testsuite/20_util/to_chars/3.cc: Likewise. * testsuite/20_util/to_chars/chars_format.cc: Likewise. * testsuite/20_util/to_chars/lwg3266.cc: Likewise. * testsuite/20_util/to_chars/requirements.cc: Likewise. * testsuite/20_util/tuple/78939.cc: Likewise. * testsuite/20_util/tuple/apply/1.cc: Likewise. * testsuite/20_util/tuple/apply/2.cc: Likewise. * testsuite/20_util/tuple/cons/deduction.cc: Likewise. * testsuite/20_util/tuple/make_from_tuple/1.cc: Likewise. * testsuite/20_util/tuple/make_from_tuple/2.cc: Likewise. * testsuite/20_util/tuple/swap_cxx17.cc: Likewise. * testsuite/20_util/tuple/tuple_size_v.cc: Likewise. * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise. * testsuite/20_util/uses_allocator/requirements/uses_allocator_v.cc: Likewise. * testsuite/20_util/variable_templates_for_traits.cc: Likewise. * testsuite/20_util/void_t/1.cc: Likewise. * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise. * testsuite/24_iterators/container_access.cc: Likewise. * testsuite/24_iterators/headers/iterator/range_access_c++17.cc: Likewise. * testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: Likewise. * testsuite/24_iterators/range_access/range_access_cpp17.cc: Likewise. * testsuite/24_iterators/range_access/range_access_cpp17_neg.cc: Likewise. * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise. * testsuite/26_numerics/headers/cmath/functions_std_c++17.cc: Likewise. * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise. * testsuite/26_numerics/headers/cmath/special_functions_global.cc: Likewise. * testsuite/26_numerics/lcm/1.cc: Likewise. * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise. * testsuite/26_numerics/valarray/deduction.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: Likewise. * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: Likewise. * testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc: Likewise. * testsuite/27_io/types/4.cc: Likewise. * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise. * testsuite/libstdc++-prettyprinters/91997.cc: Likewise. * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. (cherry picked from commit 0498d2d09a2364aae1e6b5e085c8ebb8fc517684) --- diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc index b23bbb91bc8c..c4e38d6423a1 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Ensure the library only uses the __name__ form for attributes. diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_no_exceptions.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_no_exceptions.cc index d5b7ba9f0bfa..2d13a9153a25 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_no_exceptions.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_no_exceptions.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++17 -fno-exceptions" } +// { dg-options "-fno-exceptions" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc index 87e718ef7a4c..dec97d470973 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++17 -pedantic-errors" } +// { dg-options "-pedantic-errors" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/operator_names.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/operator_names.cc index 155c97233f32..63b2918af75a 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/operator_names.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/operator_names.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++17 -fno-operator-names" } +// { dg-options "-fno-operator-names" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/parallel_mode.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/parallel_mode.cc index cabd552181bd..a82fe4fe965a 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/parallel_mode.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/parallel_mode.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // { dg-require-normal-mode "" } diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++.cc index 90f85412ff89..3a63e513769f 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++.cc @@ -1,5 +1,4 @@ // FreeBSD wants warning clean system headers: -// { dg-options "-std=gnu++17" } // { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } } // { dg-do compile { target c++17 } } diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc index 9e199f564ee7..97c73ee959d1 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc @@ -1,5 +1,4 @@ // FreeBSD wants warning clean system headers: -// { dg-options "-std=gnu++17" } // { dg-additional-options "-Wall -Wsystem-headers" { target *-*-freebsd* *-*-dragonfly* } } // { dg-do compile { target c++17 } } diff --git a/libstdc++-v3/testsuite/18_support/aligned_alloc/aligned_alloc.cc b/libstdc++-v3/testsuite/18_support/aligned_alloc/aligned_alloc.cc index 76223cd25595..1ba58ff4d4c0 100644 --- a/libstdc++-v3/testsuite/18_support/aligned_alloc/aligned_alloc.cc +++ b/libstdc++-v3/testsuite/18_support/aligned_alloc/aligned_alloc.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // { dg-require-cstdint "" } diff --git a/libstdc++-v3/testsuite/18_support/byte/81076.cc b/libstdc++-v3/testsuite/18_support/byte/81076.cc index 6c17e4bd3c40..7917dcb0cbda 100644 --- a/libstdc++-v3/testsuite/18_support/byte/81076.cc +++ b/libstdc++-v3/testsuite/18_support/byte/81076.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/byte/global_neg.cc b/libstdc++-v3/testsuite/18_support/byte/global_neg.cc index c4d45d4bca1a..fb1176f84964 100644 --- a/libstdc++-v3/testsuite/18_support/byte/global_neg.cc +++ b/libstdc++-v3/testsuite/18_support/byte/global_neg.cc @@ -15,7 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } +// Use -O0 just do disable PCH, otherwise std::byte is declared. +// { dg-options "-O0" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/byte/ops.cc b/libstdc++-v3/testsuite/18_support/byte/ops.cc index 36f66f4c24eb..a8fcf08cfc0e 100644 --- a/libstdc++-v3/testsuite/18_support/byte/ops.cc +++ b/libstdc++-v3/testsuite/18_support/byte/ops.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/byte/requirements.cc b/libstdc++-v3/testsuite/18_support/byte/requirements.cc index 50a0f2132efe..516ac2c303c9 100644 --- a/libstdc++-v3/testsuite/18_support/byte/requirements.cc +++ b/libstdc++-v3/testsuite/18_support/byte/requirements.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/headers/cfloat/values_c++17.cc b/libstdc++-v3/testsuite/18_support/headers/cfloat/values_c++17.cc index f6a99c75d5df..e49a3a631782 100644 --- a/libstdc++-v3/testsuite/18_support/headers/cfloat/values_c++17.cc +++ b/libstdc++-v3/testsuite/18_support/headers/cfloat/values_c++17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2019-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/18_support/launder/1.cc b/libstdc++-v3/testsuite/18_support/launder/1.cc index f6722d09d879..2301631068f4 100644 --- a/libstdc++-v3/testsuite/18_support/launder/1.cc +++ b/libstdc++-v3/testsuite/18_support/launder/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/launder/nodiscard.cc b/libstdc++-v3/testsuite/18_support/launder/nodiscard.cc index 01c89690368f..20bd195b2594 100644 --- a/libstdc++-v3/testsuite/18_support/launder/nodiscard.cc +++ b/libstdc++-v3/testsuite/18_support/launder/nodiscard.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/launder/requirements.cc b/libstdc++-v3/testsuite/18_support/launder/requirements.cc index 039bfc39e68f..8a17491f09f2 100644 --- a/libstdc++-v3/testsuite/18_support/launder/requirements.cc +++ b/libstdc++-v3/testsuite/18_support/launder/requirements.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // NB: This file is for testing new with NO OTHER INCLUDES. diff --git a/libstdc++-v3/testsuite/18_support/launder/requirements_neg.cc b/libstdc++-v3/testsuite/18_support/launder/requirements_neg.cc index 62424c9a49b9..f486f0632387 100644 --- a/libstdc++-v3/testsuite/18_support/launder/requirements_neg.cc +++ b/libstdc++-v3/testsuite/18_support/launder/requirements_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/new_aligned.cc b/libstdc++-v3/testsuite/18_support/new_aligned.cc index b20bb8855b49..b3943a47c23f 100644 --- a/libstdc++-v3/testsuite/18_support/new_aligned.cc +++ b/libstdc++-v3/testsuite/18_support/new_aligned.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc b/libstdc++-v3/testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc index 0c80c1d3c43b..83200add683f 100644 --- a/libstdc++-v3/testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc +++ b/libstdc++-v3/testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_code/is_error_code_v.cc b/libstdc++-v3/testsuite/19_diagnostics/error_code/is_error_code_v.cc index a0166908ff21..1a46c876a570 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/error_code/is_error_code_v.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/error_code/is_error_code_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2014-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_condition/hash.cc b/libstdc++-v3/testsuite/19_diagnostics/error_condition/hash.cc index 497aed8ce565..87d43e0d09aa 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/error_condition/hash.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/error_condition/hash.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc b/libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc index 95fd08e6234c..fb13de9e72d7 100644 --- a/libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc +++ b/libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/as_const/1.cc b/libstdc++-v3/testsuite/20_util/as_const/1.cc index 0c68aa180d1f..46e6b3c7594e 100644 --- a/libstdc++-v3/testsuite/20_util/as_const/1.cc +++ b/libstdc++-v3/testsuite/20_util/as_const/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/as_const/rvalue_neg.cc b/libstdc++-v3/testsuite/20_util/as_const/rvalue_neg.cc index 4e6bdcb9d0dc..29fd6bbefa89 100644 --- a/libstdc++-v3/testsuite/20_util/as_const/rvalue_neg.cc +++ b/libstdc++-v3/testsuite/20_util/as_const/rvalue_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/bind/83427.cc b/libstdc++-v3/testsuite/20_util/bind/83427.cc index fc8147dcbee2..7a865464e263 100644 --- a/libstdc++-v3/testsuite/20_util/bind/83427.cc +++ b/libstdc++-v3/testsuite/20_util/bind/83427.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/bind/is_placeholder_v.cc b/libstdc++-v3/testsuite/20_util/bind/is_placeholder_v.cc index fc0a2c401bd3..aefd23d97fbd 100644 --- a/libstdc++-v3/testsuite/20_util/bind/is_placeholder_v.cc +++ b/libstdc++-v3/testsuite/20_util/bind/is_placeholder_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/bool_constant/requirements.cc b/libstdc++-v3/testsuite/20_util/bool_constant/requirements.cc index 417a718f3161..09a23b0645c1 100644 --- a/libstdc++-v3/testsuite/20_util/bool_constant/requirements.cc +++ b/libstdc++-v3/testsuite/20_util/bool_constant/requirements.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc b/libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc index bea797255001..52d2a07bbbc5 100644 --- a/libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc +++ b/libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2011-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/duration/requirements/treat_as_floating_point_v.cc b/libstdc++-v3/testsuite/20_util/duration/requirements/treat_as_floating_point_v.cc index 698ec5fc08bc..4b08351e447d 100644 --- a/libstdc++-v3/testsuite/20_util/duration/requirements/treat_as_floating_point_v.cc +++ b/libstdc++-v3/testsuite/20_util/duration/requirements/treat_as_floating_point_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2014-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/duration_cast/rounding.cc b/libstdc++-v3/testsuite/20_util/duration_cast/rounding.cc index a1ed0dae66d7..3f8cb6cf7901 100644 --- a/libstdc++-v3/testsuite/20_util/duration_cast/rounding.cc +++ b/libstdc++-v3/testsuite/20_util/duration_cast/rounding.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc b/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc index c3359df3fb40..60d0e35ad5a0 100644 --- a/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc +++ b/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc b/libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc index ea1586c6b6d4..890cd826ee86 100644 --- a/libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc +++ b/libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/from_chars/requirements.cc b/libstdc++-v3/testsuite/20_util/from_chars/requirements.cc index a671dbb5cec2..2f101d6ac5ff 100644 --- a/libstdc++-v3/testsuite/20_util/from_chars/requirements.cc +++ b/libstdc++-v3/testsuite/20_util/from_chars/requirements.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // { dg-require-normal-namespace "" } diff --git a/libstdc++-v3/testsuite/20_util/function/91456.cc b/libstdc++-v3/testsuite/20_util/function/91456.cc index 2900c3900575..83c88f8d9a52 100644 --- a/libstdc++-v3/testsuite/20_util/function/91456.cc +++ b/libstdc++-v3/testsuite/20_util/function/91456.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/function/cons/deduction.cc index 20f127f3858c..8e1b4d45581f 100644 --- a/libstdc++-v3/testsuite/20_util/function/cons/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/function/cons/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function_objects/83607.cc b/libstdc++-v3/testsuite/20_util/function_objects/83607.cc index 1bf11c1c4a76..ee82419a7797 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/83607.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/83607.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function_objects/invoke/59768.cc b/libstdc++-v3/testsuite/20_util/function_objects/invoke/59768.cc index 90e2dfa63de7..e605b28084e3 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/invoke/59768.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/invoke/59768.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/80478.cc b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/80478.cc index 964965f6c46e..e5de8b18820a 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/80478.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/80478.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/1.cc b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/1.cc index c1e5d90d4a6c..3837433efa29 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/1.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc index c4e11a1d0d05..db452a9fe9db 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc index 39ac9d739e9d..2b0cc75f64aa 100644 --- a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc index b8dce4272a3a..56c0555aaa10 100644 --- a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/value.cc b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/value.cc index 7a49ffa55ce5..d0c5005f34e3 100644 --- a/libstdc++-v3/testsuite/20_util/has_unique_object_representations/value.cc +++ b/libstdc++-v3/testsuite/20_util/has_unique_object_representations/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/hash/nullptr.cc b/libstdc++-v3/testsuite/20_util/hash/nullptr.cc index 4f9b1c20f737..7b4c3bfcbc4c 100644 --- a/libstdc++-v3/testsuite/20_util/hash/nullptr.cc +++ b/libstdc++-v3/testsuite/20_util/hash/nullptr.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/in_place/requirements.cc b/libstdc++-v3/testsuite/20_util/in_place/requirements.cc index b380aac493e1..707342ad2be2 100644 --- a/libstdc++-v3/testsuite/20_util/in_place/requirements.cc +++ b/libstdc++-v3/testsuite/20_util/in_place/requirements.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_aggregate/incomplete_neg.cc b/libstdc++-v3/testsuite/20_util/is_aggregate/incomplete_neg.cc index b30d93fc8c6c..a9f606ddb10b 100644 --- a/libstdc++-v3/testsuite/20_util/is_aggregate/incomplete_neg.cc +++ b/libstdc++-v3/testsuite/20_util/is_aggregate/incomplete_neg.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2019-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc index 4185f540b5e4..80cb1f9e4c00 100644 --- a/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/typedefs.cc index cf17ecec6841..377314de823b 100644 --- a/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_aggregate/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_aggregate/value.cc b/libstdc++-v3/testsuite/20_util/is_aggregate/value.cc index a1b4ddba1597..4d35334f748c 100644 --- a/libstdc++-v3/testsuite/20_util/is_aggregate/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_aggregate/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_invocable/83395.cc b/libstdc++-v3/testsuite/20_util/is_invocable/83395.cc index 1be3be573d50..0b90f1d09ee8 100644 --- a/libstdc++-v3/testsuite/20_util/is_invocable/83395.cc +++ b/libstdc++-v3/testsuite/20_util/is_invocable/83395.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_invocable/91456.cc b/libstdc++-v3/testsuite/20_util/is_invocable/91456.cc index bdfc12a18582..aa1570200e77 100644 --- a/libstdc++-v3/testsuite/20_util/is_invocable/91456.cc +++ b/libstdc++-v3/testsuite/20_util/is_invocable/91456.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_invocable/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_invocable/requirements/explicit_instantiation.cc index 48ed5c34184c..15b7155c165e 100644 --- a/libstdc++-v3/testsuite/20_util/is_invocable/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_invocable/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_invocable/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_invocable/requirements/typedefs.cc index f0fa0bea69c7..6515fc063626 100644 --- a/libstdc++-v3/testsuite/20_util/is_invocable/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_invocable/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_invocable/value.cc b/libstdc++-v3/testsuite/20_util/is_invocable/value.cc index 18afc8fe052c..76f17f0cae99 100644 --- a/libstdc++-v3/testsuite/20_util/is_invocable/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_invocable/value.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_literal_type/deprecated-1z.cc b/libstdc++-v3/testsuite/20_util/is_literal_type/deprecated-1z.cc index 6cc972f35413..121e46c57752 100644 --- a/libstdc++-v3/testsuite/20_util/is_literal_type/deprecated-1z.cc +++ b/libstdc++-v3/testsuite/20_util/is_literal_type/deprecated-1z.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/94003.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/94003.cc index aa0de5e0d294..51ba6256d2bf 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/94003.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_constructible/94003.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/83395.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/83395.cc index 4c3fd82fb80c..a4d396781cd1 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/83395.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/83395.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/explicit_instantiation.cc index f6bf3466533a..fb4b4c1fd492 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/typedefs.cc index 3dc5fb99232a..e9055f11d588 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value.cc index 0ef48522099a..310addb91abb 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_invocable/value.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc index 772319ebb8a4..9a2957f66c0e 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc index e98f98c8c6f9..8ea83ec4d906 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc index b6d8db6551a1..c68c7c68411b 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc index f3eb3b9fbc2d..b7d1b3fa08ee 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc index 7fc48266d99f..ac6d7b8da1c1 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/value.cc b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/value.cc index 1e291c790915..a07615939819 100644 --- a/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc index c68d72ec3043..b1b91a5e5be9 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc index 816db3a05682..f088682c74d0 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable/value.cc b/libstdc++-v3/testsuite/20_util/is_swappable/value.cc index d04760cd571d..e67f1bc2f1a9 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc index 3e2ab2860c24..6b07d31477ed 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/typedefs.cc index 5cad2ee79f3b..107041a414ad 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/is_swappable_with/value.cc b/libstdc++-v3/testsuite/20_util/is_swappable_with/value.cc index 4af7a31f5154..553e743446dd 100644 --- a/libstdc++-v3/testsuite/20_util/is_swappable_with/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_swappable_with/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/logical_traits/83134.cc b/libstdc++-v3/testsuite/20_util/logical_traits/83134.cc index 4b16a4545e72..925253e31e1f 100644 --- a/libstdc++-v3/testsuite/20_util/logical_traits/83134.cc +++ b/libstdc++-v3/testsuite/20_util/logical_traits/83134.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc index 1c451691eb35..fa8abad90b9c 100644 --- a/libstdc++-v3/testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/logical_traits/requirements/typedefs.cc b/libstdc++-v3/testsuite/20_util/logical_traits/requirements/typedefs.cc index 11904ded489f..e0b8a00a345b 100644 --- a/libstdc++-v3/testsuite/20_util/logical_traits/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/20_util/logical_traits/requirements/typedefs.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // // Copyright (C) 2015-2021 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/logical_traits/value.cc b/libstdc++-v3/testsuite/20_util/logical_traits/value.cc index 1e384d5e7314..1b3d94ee52d8 100644 --- a/libstdc++-v3/testsuite/20_util/logical_traits/value.cc +++ b/libstdc++-v3/testsuite/20_util/logical_traits/value.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/pair/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/pair/cons/deduction.cc index 64818780bb41..65dd36022f8c 100644 --- a/libstdc++-v3/testsuite/20_util/pair/cons/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/pair/cons/deduction.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/pair/swap_cxx17.cc b/libstdc++-v3/testsuite/20_util/pair/swap_cxx17.cc index c1d54cfe3ac2..8872ff057481 100644 --- a/libstdc++-v3/testsuite/20_util/pair/swap_cxx17.cc +++ b/libstdc++-v3/testsuite/20_util/pair/swap_cxx17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/ratio/requirements/ratio_equal_v.cc b/libstdc++-v3/testsuite/20_util/ratio/requirements/ratio_equal_v.cc index bac0e351f1a7..0720ebe9883c 100644 --- a/libstdc++-v3/testsuite/20_util/ratio/requirements/ratio_equal_v.cc +++ b/libstdc++-v3/testsuite/20_util/ratio/requirements/ratio_equal_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2014-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/83427.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/83427.cc index bd0efb81e5bc..eb26b906f92b 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/83427.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/83427.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17_only } } #include diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/deduction.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/deduction.cc index fbdbd6f59f7b..c89e08bba580 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/casts/reinterpret.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/casts/reinterpret.cc index 667a756d88b7..281892996cf2 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/casts/reinterpret.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/casts/reinterpret.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/deduction.cc index be42289ee189..8a3702cb245a 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/requirements/weak_type.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/requirements/weak_type.cc index c3f5dbee5c1b..1ab622db2cb7 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/requirements/weak_type.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/requirements/weak_type.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/time_point/arithmetic/constexpr.cc b/libstdc++-v3/testsuite/20_util/time_point/arithmetic/constexpr.cc index fb50bd813b2e..e868a2781b88 100644 --- a/libstdc++-v3/testsuite/20_util/time_point/arithmetic/constexpr.cc +++ b/libstdc++-v3/testsuite/20_util/time_point/arithmetic/constexpr.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2011-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc b/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc index 5de87c7ecce2..0190ad1a8408 100644 --- a/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc +++ b/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/to_chars/3.cc b/libstdc++-v3/testsuite/20_util/to_chars/3.cc index e559f351b783..30b02a539446 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/3.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/3.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // { dg-require-string-conversions "" } diff --git a/libstdc++-v3/testsuite/20_util/to_chars/chars_format.cc b/libstdc++-v3/testsuite/20_util/to_chars/chars_format.cc index dbf41f9ffba9..e13cb315b31d 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/chars_format.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/chars_format.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/to_chars/lwg3266.cc b/libstdc++-v3/testsuite/20_util/to_chars/lwg3266.cc index 28ce29a7b8c1..b9ab36a2b251 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/lwg3266.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/lwg3266.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/to_chars/requirements.cc b/libstdc++-v3/testsuite/20_util/to_chars/requirements.cc index ec8ed5c26063..42e857b2988e 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/requirements.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/requirements.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // { dg-require-normal-namespace "" } diff --git a/libstdc++-v3/testsuite/20_util/tuple/78939.cc b/libstdc++-v3/testsuite/20_util/tuple/78939.cc index 9934cda4a54b..0a6cfa7b692d 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/78939.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/78939.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-additional-options "-Wno-deprecated" { target c++2a } } // { dg-do compile { target c++17 } } diff --git a/libstdc++-v3/testsuite/20_util/tuple/apply/1.cc b/libstdc++-v3/testsuite/20_util/tuple/apply/1.cc index 83c31a37ef7a..e8352cfb6efa 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/apply/1.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/apply/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/tuple/apply/2.cc b/libstdc++-v3/testsuite/20_util/tuple/apply/2.cc index be8fc7b47399..a2cdb62e44cc 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/apply/2.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/apply/2.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Test noexcept-specifier on std::apply diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc index af09c971f000..70582d89bfa7 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/1.cc b/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/1.cc index 42479d184c04..2d3ab9ad0947 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/1.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/2.cc b/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/2.cc index b3e9486a1df7..f12876b6d352 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/2.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/2.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Test noexcept-specifier on std::make_from_tuple diff --git a/libstdc++-v3/testsuite/20_util/tuple/swap_cxx17.cc b/libstdc++-v3/testsuite/20_util/tuple/swap_cxx17.cc index 1f06be82059b..96cfe44c1fc2 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/swap_cxx17.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/swap_cxx17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/tuple/tuple_size_v.cc b/libstdc++-v3/testsuite/20_util/tuple/tuple_size_v.cc index c2376418d1fe..2ecafff25d8c 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/tuple_size_v.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/tuple_size_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2014-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/cons/deduction_neg.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/cons/deduction_neg.cc index 16646edd3b91..2a607291fd1a 100644 --- a/libstdc++-v3/testsuite/20_util/unique_ptr/cons/deduction_neg.cc +++ b/libstdc++-v3/testsuite/20_util/unique_ptr/cons/deduction_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include @@ -32,5 +31,5 @@ test01() std::unique_ptr bad2{new double, D()}; // { dg-error "class template argument deduction failed" } } -// { dg-error "no matching function" "" { target *-*-* } 29 } -// { dg-error "no matching function" "" { target *-*-* } 32 } +// { dg-error "no matching function" "" { target *-*-* } 28 } +// { dg-error "no matching function" "" { target *-*-* } 31 } diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/requirements/uses_allocator_v.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/requirements/uses_allocator_v.cc index e624cf568372..bf405e07d2ee 100644 --- a/libstdc++-v3/testsuite/20_util/uses_allocator/requirements/uses_allocator_v.cc +++ b/libstdc++-v3/testsuite/20_util/uses_allocator/requirements/uses_allocator_v.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc b/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc index 60d7aa94938e..a5c48fe5e3aa 100644 --- a/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc +++ b/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-additional-options "-Wno-deprecated" { target c++2a } } // { dg-do compile { target c++17 } } diff --git a/libstdc++-v3/testsuite/20_util/void_t/1.cc b/libstdc++-v3/testsuite/20_util/void_t/1.cc index ded6be168eb2..b8dc9e0c7814 100644 --- a/libstdc++-v3/testsuite/20_util/void_t/1.cc +++ b/libstdc++-v3/testsuite/20_util/void_t/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/20_util/weak_ptr/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/weak_ptr/cons/deduction.cc index 2aa6abe4ae25..0333942db290 100644 --- a/libstdc++-v3/testsuite/20_util/weak_ptr/cons/deduction.cc +++ b/libstdc++-v3/testsuite/20_util/weak_ptr/cons/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/24_iterators/container_access.cc b/libstdc++-v3/testsuite/24_iterators/container_access.cc index bcdc782512f7..d795eafae456 100644 --- a/libstdc++-v3/testsuite/24_iterators/container_access.cc +++ b/libstdc++-v3/testsuite/24_iterators/container_access.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // Copyright (C) 2015-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++17.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++17.cc index 506b18c7648b..d0ae2d3b7404 100644 --- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++17.cc +++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2016-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++17.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++17.cc index 633288eafb42..4039bd61f623 100644 --- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++17.cc +++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/synopsis_c++17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // { dg-require-normal-namespace "" } diff --git a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17.cc b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17.cc index 358e19345e12..33f724206c60 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Copyright (C) 2017-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17_neg.cc b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17_neg.cc index a56a11057a9d..06055bf7e6a2 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17_neg.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access/range_access_cpp17_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc b/libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc index 90aaee75af66..e68a051aaa49 100644 --- a/libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc +++ b/libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc index 3b337f83bf5b..28d63bbbeb9c 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++17.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc index 1e5040709124..ad785459721c 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/special_functions_global.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/special_functions_global.cc index c4856b227edd..6ac8beef56a6 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/special_functions_global.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/special_functions_global.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #undef __STDCPP_WANT_MATH_SPEC_FUNCS__ diff --git a/libstdc++-v3/testsuite/26_numerics/lcm/1.cc b/libstdc++-v3/testsuite/26_numerics/lcm/1.cc index b23796c22da4..2495fa10ddde 100644 --- a/libstdc++-v3/testsuite/26_numerics/lcm/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/lcm/1.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc b/libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc index 485b9a4dd016..dbe23ab7f266 100644 --- a/libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc +++ b/libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/deduction.cc b/libstdc++-v3/testsuite/26_numerics/valarray/deduction.cc index 5c709b779c4c..52c8f8e44af4 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/deduction.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc index d7c6ad052122..b410b7729c64 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++17 -fno-inline" } +// { dg-options "-fno-inline" } // { dg-do link { target c++17 } } #include diff --git a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted_sv.cc b/libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted_sv.cc index 3f76b5b8d840..ec6041d27d5b 100644 --- a/libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted_sv.cc +++ b/libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted_sv.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // Copyright (C) 2018-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc b/libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc index 282173a654d8..3881d33ae850 100644 --- a/libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc +++ b/libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/quoted_sv.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } // Copyright (C) 2018-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/27_io/types/4.cc b/libstdc++-v3/testsuite/27_io/types/4.cc index 99cf63b20932..c9e1708ccd40 100644 --- a/libstdc++-v3/testsuite/27_io/types/4.cc +++ b/libstdc++-v3/testsuite/27_io/types/4.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // In C++17 these names are not reserved by the library. diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/deduction.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/deduction.cc index aed7c5f2f631..9064b7796797 100644 --- a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/deduction.cc +++ b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/deduction.cc @@ -15,7 +15,6 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // { dg-timeout-factor 3 } diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/91997.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/91997.cc index d1bdf08b6b1b..f47fbff4da74 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/91997.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/91997.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++17 -g -O0 -Wno-unused" } +// { dg-options "-g -O0 -Wno-unused" } // { dg-do run { target c++17 } } // Copyright (C) 2019-2021 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc index 98e21e963fe5..72c66d3b785a 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc @@ -1,4 +1,4 @@ -// { dg-options "-g -O0 -std=gnu++17" } +// { dg-options "-g -O0" } // { dg-do run { target c++17 } } // Copyright (C) 2014-2021 Free Software Foundation, Inc.