]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Test for feature test macros more accurately
authorJonathan Wakely <jwakely@redhat.com>
Tue, 19 Sep 2023 16:46:32 +0000 (17:46 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 16 Nov 2023 08:06:59 +0000 (08:06 +0000)
Tests which check for feature test macros should use the no_pch option,
so that we're really testing for the definition being in the intended
header, and not just testing that it's present in <bits/stdc++.h> (which
includes all the standard headers and so defines all the macros).

libstdc++-v3/ChangeLog:

* testsuite/18_support/byte/requirements.cc: Disable PCH.
* testsuite/18_support/destroying_delete.cc: Likewise.
* testsuite/18_support/source_location/1.cc: Likewise.
* testsuite/18_support/source_location/version.cc: Likewise.
* testsuite/18_support/type_info/constexpr.cc: Likewise.
* testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
Likewise.
* testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
* testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
* testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
* testsuite/20_util/addressof/requirements/constexpr.cc:
Likewise.
* testsuite/20_util/allocator_traits/header-2.cc: Likewise.
* testsuite/20_util/allocator_traits/header.cc: Likewise.
* testsuite/20_util/as_const/1.cc: Likewise. Likewise.
* testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
* testsuite/20_util/bitset/version.cc: Likewise.
* testsuite/20_util/duration/arithmetic/constexpr_c++17.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/exchange/constexpr.cc: Likewise.
* testsuite/20_util/expected/synopsis.cc: Likewise.
* testsuite/20_util/expected/version.cc: Likewise.
* testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
* testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
* testsuite/20_util/function_objects/invoke/3.cc: Likewise.
* testsuite/20_util/function_objects/invoke/4.cc: Likewise.
* testsuite/20_util/function_objects/invoke/constexpr.cc:
Likewise.
* testsuite/20_util/function_objects/invoke/version.cc:
Likewise.
* testsuite/20_util/function_objects/searchers.cc: Likewise.
* testsuite/20_util/integer_comparisons/1.cc: Likewise.
* testsuite/20_util/integer_comparisons/2.cc: Likewise.
* testsuite/20_util/is_bounded_array/value.cc: Likewise.
* testsuite/20_util/is_layout_compatible/value.cc: Likewise.
* testsuite/20_util/is_layout_compatible/version.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/value.h: Likewise.
* testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc:
Remove redundant checks already tested elsewhere.
* testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc:
Likewise.
* testsuite/20_util/is_nothrow_swappable_with/value.cc: Disable
PCH.
* testsuite/20_util/is_pointer_interconvertible/value.cc:
Likewise.
* testsuite/20_util/is_pointer_interconvertible/version.cc:
Likewise.
* testsuite/20_util/is_scoped_enum/value.cc: Likewise.
* testsuite/20_util/is_scoped_enum/version.cc: Likewise.
* testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc:
Remove redundant checks already tested elsewhere.
* testsuite/20_util/is_swappable/requirements/typedefs.cc:
Remove redundant checks already tested elsewhere.
* testsuite/20_util/is_swappable/value.cc: Disable PCH.
* testsuite/20_util/is_swappable/value.h: Reorder headers.
* testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc:
Remove redundant checks already tested elsewhere.
* testsuite/20_util/is_swappable_with/requirements/typedefs.cc:
Remove redundant checks already tested elsewhere.
* testsuite/20_util/is_swappable_with/value.cc: Disable PCH.
* testsuite/20_util/is_unbounded_array/value.cc: Likewise.
* testsuite/20_util/move_only_function/cons.cc: Likewise.
* testsuite/20_util/move_only_function/version.cc: Likewise.
* testsuite/20_util/optional/monadic/and_then.cc: Likewise.
* testsuite/20_util/optional/requirements.cc: Likewise.
* testsuite/20_util/optional/version.cc: Likewise.
* testsuite/20_util/owner_less/void.cc: Likewise.
* testsuite/20_util/reference_from_temporary/value.cc: Likewise.
* testsuite/20_util/reference_from_temporary/version.cc:
Likewise.
* testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
Likewise.
* testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
* testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
* testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
* testsuite/20_util/time_point_cast/rounding.cc: Likewise.
* testsuite/20_util/to_chars/constexpr.cc: Likewise.
* testsuite/20_util/to_chars/result.cc: Likewise.
* testsuite/20_util/to_chars/version.cc: Likewise.
* testsuite/20_util/to_underlying/1.cc: Likewise.
* testsuite/20_util/to_underlying/version.cc: Likewise.
* testsuite/20_util/tuple/apply/1.cc: Likewise.
* testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
Likewise.
* testsuite/20_util/tuple/make_from_tuple/1.cc: Likewise.
* testsuite/20_util/tuple/p2321r2.cc: Likewise.
* testsuite/20_util/tuple/tuple_element_t.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
Likewise.
* testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
Likewise.
* testsuite/20_util/unreachable/1.cc: Likewise.
* testsuite/20_util/unreachable/version.cc: Likewise.
* testsuite/20_util/unwrap_reference/1.cc: Likewise.
* testsuite/20_util/unwrap_reference/3.cc: Likewise.
* testsuite/20_util/variant/constexpr.cc: Likewise.
* testsuite/20_util/variant/version.cc: Likewise.
* testsuite/20_util/variant/visit_inherited.cc: Likewise.
* testsuite/20_util/void_t/1.cc: Likewise.
* testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
Likewise.
* testsuite/21_strings/basic_string/cons/char/constexpr.cc:
Likewise.
* testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
Likewise.
* testsuite/21_strings/basic_string/erasure.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/version.cc:
Likewise.
* testsuite/21_strings/basic_string/version.cc: Likewise.
* testsuite/21_strings/basic_string_view/operations/contains/char.cc:
Likewise.
* testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
Likewise.
* testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
Likewise.
* testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
Likewise.
* testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
Likewise.
* testsuite/21_strings/char_traits/requirements/version.cc:
Likewise.
* testsuite/23_containers/array/comparison_operators/constexpr.cc:
Likewise.
* testsuite/23_containers/array/creation/1.cc: Likewise.
* testsuite/23_containers/array/creation/2.cc: Likewise.
* testsuite/23_containers/array/element_access/constexpr_c++17.cc:
Likewise.
* testsuite/23_containers/array/requirements/constexpr_fill.cc:
Likewise.
* testsuite/23_containers/array/requirements/constexpr_iter.cc:
Likewise.
* testsuite/23_containers/deque/erasure.cc: Likewise.
* testsuite/23_containers/forward_list/erasure.cc: Likewise.
* testsuite/23_containers/list/erasure.cc: Likewise.
* testsuite/23_containers/map/erasure.cc: Likewise.
* testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
* testsuite/23_containers/set/erasure.cc: Likewise.
* testsuite/23_containers/span/1.cc: Likewise.
* testsuite/23_containers/span/2.cc: Likewise.
* testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
* testsuite/23_containers/unordered_map/erasure.cc: Likewise.
* testsuite/23_containers/unordered_map/operations/1.cc:
Likewise.
* testsuite/23_containers/unordered_set/erasure.cc: Likewise.
* testsuite/23_containers/unordered_set/operations/1.cc:
Likewise.
* testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
* testsuite/23_containers/vector/erasure.cc: Likewise.
* testsuite/23_containers/vector/requirements/version.cc:
Likewise.
* testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
* testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
* testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc:
Remove redundant checks already tested elsewhere.
* testsuite/25_algorithms/constexpr_macro.cc: Likewise.
* testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
* testsuite/25_algorithms/fold_left/1.cc: Likewise.
* testsuite/25_algorithms/pstl/feature_test-2.cc: Likewise.
* testsuite/25_algorithms/pstl/feature_test-3.cc: Likewise.
* testsuite/25_algorithms/pstl/feature_test-4.cc: Likewise.
* testsuite/25_algorithms/pstl/feature_test-5.cc: Likewise.
* testsuite/25_algorithms/pstl/feature_test.cc: Likewise.
* testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
* testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
* testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
* testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
* testsuite/26_numerics/bit/header-2.cc: Likewise.
* testsuite/26_numerics/bit/header.cc: Likewise.
* testsuite/26_numerics/complex/1.cc: Likewise.
* testsuite/26_numerics/complex/2.cc: Likewise.
* testsuite/26_numerics/endian/2.cc: Likewise.
* testsuite/26_numerics/endian/3.cc: Likewise.
* testsuite/26_numerics/gcd/1.cc: Likewise.
* testsuite/26_numerics/lcm/1.cc: Likewise.
* testsuite/26_numerics/lerp/1.cc: Likewise.
* testsuite/26_numerics/lerp/version.cc: Likewise.
* testsuite/26_numerics/midpoint/integral.cc: Likewise.
* testsuite/26_numerics/midpoint/version.cc: Likewise.
* testsuite/26_numerics/numbers/1.cc: Likewise.
* testsuite/26_numerics/numbers/2.cc: Likewise.
* testsuite/27_io/basic_filebuf/native_handle/char/1.cc:
Likewise.
* testsuite/27_io/basic_filebuf/native_handle/version.cc:
Likewise.
* testsuite/27_io/basic_ofstream/open/char/noreplace.cc:
Likewise.
* testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
Likewise.
* testsuite/27_io/basic_syncbuf/1.cc: Likewise.
* testsuite/27_io/basic_syncbuf/2.cc: Likewise.
* testsuite/27_io/basic_syncstream/1.cc: Likewise.
* testsuite/27_io/basic_syncstream/2.cc: Likewise.
* testsuite/27_io/spanstream/1.cc: Likewise.
* testsuite/27_io/spanstream/version.cc: Likewise.
* testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
* testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
* testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
* testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
Likewise.
* testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
* testsuite/30_threads/barrier/1.cc: Likewise.
* testsuite/30_threads/barrier/2.cc: Likewise.
* testsuite/30_threads/condition_variable_any/stop_token/1.cc:
Likewise.
* testsuite/30_threads/condition_variable_any/stop_token/2.cc:
Likewise.
* testsuite/30_threads/jthread/1.cc: Likewise.
* testsuite/30_threads/jthread/version.cc: Likewise.
* testsuite/30_threads/latch/1.cc: Likewise.
* testsuite/30_threads/latch/2.cc: Likewise.
* testsuite/30_threads/scoped_lock/requirements/typedefs.cc:
Likewise.
* testsuite/30_threads/semaphore/1.cc: Likewise.
* testsuite/30_threads/semaphore/2.cc: Likewise.
* testsuite/30_threads/stop_token/1.cc: Likewise.
* testsuite/30_threads/stop_token/2.cc: Likewise.
* testsuite/experimental/feat-char8_t.cc: Likewise.
* testsuite/experimental/iterator/ostream_joiner.cc: Likewise.
* testsuite/experimental/numeric/gcd.cc: Likewise.
* testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
* testsuite/std/concepts/1.cc: Likewise.
* testsuite/std/concepts/2.cc: Likewise.
* testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
* testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
* testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
* testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
* testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
* testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
* testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
* testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
* testsuite/std/ranges/cartesian_product/1.cc: Likewise.
* testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
* testsuite/std/ranges/repeat/1.cc: Likewise.
* testsuite/std/ranges/version_c++23.cc: Likewise.
* testsuite/std/ranges/zip/1.cc: Likewise.
* testsuite/std/time/syn_c++20.cc: Likewise.
* testsuite/experimental/feat-cxx14.cc: Likewise. Include
<algorithm> and <iterator>.
* testsuite/23_containers/array/tuple_interface/get_neg.cc:
Adjust dg-error line numbers.

200 files changed:
libstdc++-v3/testsuite/18_support/byte/requirements.cc
libstdc++-v3/testsuite/18_support/destroying_delete.cc
libstdc++-v3/testsuite/18_support/source_location/1.cc
libstdc++-v3/testsuite/18_support/source_location/version.cc
libstdc++-v3/testsuite/18_support/type_info/constexpr.cc
libstdc++-v3/testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc
libstdc++-v3/testsuite/19_diagnostics/stacktrace/output.cc
libstdc++-v3/testsuite/19_diagnostics/stacktrace/synopsis.cc
libstdc++-v3/testsuite/19_diagnostics/stacktrace/version.cc
libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc
libstdc++-v3/testsuite/20_util/allocator_traits/header-2.cc
libstdc++-v3/testsuite/20_util/allocator_traits/header.cc
libstdc++-v3/testsuite/20_util/as_const/1.cc
libstdc++-v3/testsuite/20_util/bitset/cons/constexpr_c++23.cc
libstdc++-v3/testsuite/20_util/bitset/version.cc
libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc
libstdc++-v3/testsuite/20_util/duration_cast/rounding.cc
libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc
libstdc++-v3/testsuite/20_util/exchange/constexpr.cc
libstdc++-v3/testsuite/20_util/expected/synopsis.cc
libstdc++-v3/testsuite/20_util/expected/version.cc
libstdc++-v3/testsuite/20_util/function_objects/bind_front/1.cc
libstdc++-v3/testsuite/20_util/function_objects/bind_front/2.cc
libstdc++-v3/testsuite/20_util/function_objects/invoke/3.cc
libstdc++-v3/testsuite/20_util/function_objects/invoke/4.cc
libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc
libstdc++-v3/testsuite/20_util/function_objects/invoke/version.cc
libstdc++-v3/testsuite/20_util/function_objects/searchers.cc
libstdc++-v3/testsuite/20_util/integer_comparisons/1.cc
libstdc++-v3/testsuite/20_util/integer_comparisons/2.cc
libstdc++-v3/testsuite/20_util/is_bounded_array/value.cc
libstdc++-v3/testsuite/20_util/is_layout_compatible/value.cc
libstdc++-v3/testsuite/20_util/is_layout_compatible/version.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable/value.h
libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_nothrow_swappable_with/value.cc
libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/value.cc
libstdc++-v3/testsuite/20_util/is_pointer_interconvertible/version.cc
libstdc++-v3/testsuite/20_util/is_scoped_enum/value.cc
libstdc++-v3/testsuite/20_util/is_scoped_enum/version.cc
libstdc++-v3/testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_swappable/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_swappable/value.cc
libstdc++-v3/testsuite/20_util/is_swappable/value.h
libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc
libstdc++-v3/testsuite/20_util/is_swappable_with/requirements/typedefs.cc
libstdc++-v3/testsuite/20_util/is_swappable_with/value.cc
libstdc++-v3/testsuite/20_util/is_unbounded_array/value.cc
libstdc++-v3/testsuite/20_util/move_only_function/cons.cc
libstdc++-v3/testsuite/20_util/move_only_function/version.cc
libstdc++-v3/testsuite/20_util/optional/monadic/and_then.cc
libstdc++-v3/testsuite/20_util/optional/requirements.cc
libstdc++-v3/testsuite/20_util/optional/version.cc
libstdc++-v3/testsuite/20_util/owner_less/void.cc
libstdc++-v3/testsuite/20_util/reference_from_temporary/value.cc
libstdc++-v3/testsuite/20_util/reference_from_temporary/version.cc
libstdc++-v3/testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/array.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/overwrite.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/version.cc
libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc
libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc
libstdc++-v3/testsuite/20_util/to_chars/result.cc
libstdc++-v3/testsuite/20_util/to_chars/version.cc
libstdc++-v3/testsuite/20_util/to_underlying/1.cc
libstdc++-v3/testsuite/20_util/to_underlying/version.cc
libstdc++-v3/testsuite/20_util/tuple/apply/1.cc
libstdc++-v3/testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc
libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/1.cc
libstdc++-v3/testsuite/20_util/tuple/p2321r2.cc
libstdc++-v3/testsuite/20_util/tuple/tuple_element_t.cc
libstdc++-v3/testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc
libstdc++-v3/testsuite/20_util/unique_ptr/creation/for_overwrite.cc
libstdc++-v3/testsuite/20_util/unreachable/1.cc
libstdc++-v3/testsuite/20_util/unreachable/version.cc
libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc
libstdc++-v3/testsuite/20_util/unwrap_reference/3.cc
libstdc++-v3/testsuite/20_util/variant/constexpr.cc
libstdc++-v3/testsuite/20_util/variant/version.cc
libstdc++-v3/testsuite/20_util/variant/visit_inherited.cc
libstdc++-v3/testsuite/20_util/void_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/constexpr.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc
libstdc++-v3/testsuite/21_strings/basic_string/erasure.cc
libstdc++-v3/testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc
libstdc++-v3/testsuite/21_strings/basic_string/numeric_conversions/version.cc
libstdc++-v3/testsuite/21_strings/basic_string/version.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/contains/char.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/contains/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/version.cc
libstdc++-v3/testsuite/23_containers/array/comparison_operators/constexpr.cc
libstdc++-v3/testsuite/23_containers/array/creation/1.cc
libstdc++-v3/testsuite/23_containers/array/creation/2.cc
libstdc++-v3/testsuite/23_containers/array/element_access/constexpr_c++17.cc
libstdc++-v3/testsuite/23_containers/array/requirements/constexpr_fill.cc
libstdc++-v3/testsuite/23_containers/array/requirements/constexpr_iter.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/get_neg.cc
libstdc++-v3/testsuite/23_containers/deque/erasure.cc
libstdc++-v3/testsuite/23_containers/forward_list/erasure.cc
libstdc++-v3/testsuite/23_containers/list/erasure.cc
libstdc++-v3/testsuite/23_containers/map/erasure.cc
libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc
libstdc++-v3/testsuite/23_containers/set/erasure.cc
libstdc++-v3/testsuite/23_containers/span/1.cc
libstdc++-v3/testsuite/23_containers/span/2.cc
libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc
libstdc++-v3/testsuite/23_containers/unordered_map/erasure.cc
libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc
libstdc++-v3/testsuite/23_containers/unordered_set/erasure.cc
libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc
libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc
libstdc++-v3/testsuite/23_containers/vector/erasure.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/version.cc
libstdc++-v3/testsuite/24_iterators/insert_iterator/constexpr.cc
libstdc++-v3/testsuite/25_algorithms/clamp/constexpr.cc
libstdc++-v3/testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/25_algorithms/constexpr_macro.cc
libstdc++-v3/testsuite/25_algorithms/cpp_lib_constexpr.cc
libstdc++-v3/testsuite/25_algorithms/fold_left/1.cc
libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-2.cc
libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-3.cc
libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-4.cc
libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-5.cc
libstdc++-v3/testsuite/25_algorithms/pstl/feature_test.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.byteswap/byteswap.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.byteswap/version.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.cast/bit_cast.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.cast/version.cc
libstdc++-v3/testsuite/26_numerics/bit/header-2.cc
libstdc++-v3/testsuite/26_numerics/bit/header.cc
libstdc++-v3/testsuite/26_numerics/complex/1.cc
libstdc++-v3/testsuite/26_numerics/complex/2.cc
libstdc++-v3/testsuite/26_numerics/endian/2.cc
libstdc++-v3/testsuite/26_numerics/endian/3.cc
libstdc++-v3/testsuite/26_numerics/gcd/1.cc
libstdc++-v3/testsuite/26_numerics/lcm/1.cc
libstdc++-v3/testsuite/26_numerics/lerp/1.cc
libstdc++-v3/testsuite/26_numerics/lerp/version.cc
libstdc++-v3/testsuite/26_numerics/midpoint/integral.cc
libstdc++-v3/testsuite/26_numerics/midpoint/version.cc
libstdc++-v3/testsuite/26_numerics/numbers/1.cc
libstdc++-v3/testsuite/26_numerics/numbers/2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/native_handle/char/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/native_handle/version.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
libstdc++-v3/testsuite/27_io/basic_syncbuf/1.cc
libstdc++-v3/testsuite/27_io/basic_syncbuf/2.cc
libstdc++-v3/testsuite/27_io/basic_syncstream/1.cc
libstdc++-v3/testsuite/27_io/basic_syncstream/2.cc
libstdc++-v3/testsuite/27_io/spanstream/1.cc
libstdc++-v3/testsuite/27_io/spanstream/version.cc
libstdc++-v3/testsuite/29_atomics/atomic/cons/value_init.cc
libstdc++-v3/testsuite/29_atomics/atomic/lock_free_aliases.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/1.cc
libstdc++-v3/testsuite/29_atomics/atomic/wait_notify/2.cc
libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc
libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/version.cc
libstdc++-v3/testsuite/30_threads/barrier/1.cc
libstdc++-v3/testsuite/30_threads/barrier/2.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc
libstdc++-v3/testsuite/30_threads/jthread/1.cc
libstdc++-v3/testsuite/30_threads/jthread/version.cc
libstdc++-v3/testsuite/30_threads/latch/1.cc
libstdc++-v3/testsuite/30_threads/latch/2.cc
libstdc++-v3/testsuite/30_threads/scoped_lock/requirements/typedefs.cc
libstdc++-v3/testsuite/30_threads/semaphore/1.cc
libstdc++-v3/testsuite/30_threads/semaphore/2.cc
libstdc++-v3/testsuite/30_threads/stop_token/1.cc
libstdc++-v3/testsuite/30_threads/stop_token/2.cc
libstdc++-v3/testsuite/experimental/feat-char8_t.cc
libstdc++-v3/testsuite/experimental/feat-cxx14.cc
libstdc++-v3/testsuite/experimental/iterator/ostream_joiner.cc
libstdc++-v3/testsuite/experimental/numeric/gcd.cc
libstdc++-v3/testsuite/experimental/scopeguard/uniqueres.cc
libstdc++-v3/testsuite/std/concepts/1.cc
libstdc++-v3/testsuite/std/concepts/2.cc
libstdc++-v3/testsuite/std/ranges/adaptors/as_const/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/as_rvalue/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/chunk/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/chunk_by/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/enumerate/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/join_with/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/slide/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/stride/1.cc
libstdc++-v3/testsuite/std/ranges/cartesian_product/1.cc
libstdc++-v3/testsuite/std/ranges/headers/ranges/synopsis.cc
libstdc++-v3/testsuite/std/ranges/repeat/1.cc
libstdc++-v3/testsuite/std/ranges/version_c++23.cc
libstdc++-v3/testsuite/std/ranges/zip/1.cc
libstdc++-v3/testsuite/std/time/syn_c++20.cc

index 1d3b269a677fe64095238155f99bd2cc962d3949..1c62f762e8734a9bf1f27196922d0b238906cf83 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <cstddef>
 
index 2ee927225a0a33f6565dfbe5433d114253422f2f..e6c5f28d3e4a570d2362ac3cd77f83cea58301cc 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <new>
 #include <type_traits>
index 48707b3c3e7221de6409b0dcbc81d517298f9aff..f89944cedd167baccad58f8eb12797b0fe6dff62 100644 (file)
@@ -20,6 +20,7 @@
 
 // { dg-options "-include string -include stdexcept" }
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <source_location>
 
@@ -125,7 +126,7 @@ int main ()
     member_defaulted_sl.member.file_name());
   std::string_view member_defaulted_sl_fn_name(
     member_defaulted_sl.member.function_name());
-  VERIFY(member_defaulted_sl.member.line() == 46);
+  VERIFY(member_defaulted_sl.member.line() == 47);
   // closing paren of constructor declaration
   VERIFY(member_defaulted_sl.member.column() == 25);
   VERIFY(member_defaulted_sl_fn_name.starts_with("s::s(int)"sv));
index 8cb59023e129758ca29c2c5e501e768dd4c64937..8cf8c5b39170c6437e8e96d757261d8595980687 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 9390aa45f80cde6b54683477003d9cddb802dd2c..bb4bb4485c25165d37df747a02313dc4e1dc66d1 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-options "-frtti" }
 // { dg-do compile { target c++23 } }
 // { dg-additional-options "-fdelete-null-pointer-checks" }
+// { dg-add-options no_pch }
 
 #include <typeinfo>
 
index 7f3ddf05103b705a2c77a26c97eec8ec3883d8cf..405f81cae4d2d7836db3565978f20f3b951d2187 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <cassert>
 #include <exception>
index 35389ecbd85a0e3d85bd202ba2c22f2c380db979..4960ccb85b8b3e4cf7515036c234b671a24bc2a9 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-effective-target stacktrace }
+// { dg-add-options no_pch }
 
 #include <stacktrace>
 #include <sstream>
index 5e32527b88b4ca4abd3ba28e873e8675e9db1435..9e775b86ac979e297e97f4319c03ee0fb230bca1 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-effective-target stacktrace }
 // { dg-require-normal-namespace "" }
+// { dg-add-options no_pch }
 
 #include <stacktrace>
 
index ecfaf4165c3caab6cc0bee94ea12b82afcc0da1d..21c2d48b7b50f5ec95937f0d841a98ab3f8f8fc0 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++23 } }
 // { dg-require-effective-target stacktrace }
+// { dg-add-options no_pch }
 
 #include <version>
 
index bc024d69292de5fce5087c77c07ce91423a7312f..38c4f0495cdb355a2a55936a4f04e694b75a9cfd 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index 9393d8a885d1024859336a9af4264deff05a263a..0ebef20dec3f9729a383e6d6d3b66a4419405f61 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 4a88abaadb73ee2f59798e9c7c8eb5c78721d2ab..de9327f935adb3a6c77206c2db3279877f87ab4c 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <memory>
 
index bcff9f78dda301a94efa12290d5c178b98628379..eae340180020b9fe21979fb7bf5f1971c475048e 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index 871d17d9b04b8468a7c1d31193c08de1199ebaf6..7e2eba5095d28a9450f8d6ad31346d1038e97b54 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile { target c++23 } }
 // This test relies on std::string.
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <bitset>
 
index 1badb29507a9c92b2ab9d1739b6debd4b356cc75..8117092b417e6de9fe072a6742590eb1ab977a03 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++23 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 6fe5475caf02f2df0f8a2db4f0e16d80288e9cde..d06c5c836f31ff5ef434e9c12adff09a5869fc53 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2011-2023 Free Software Foundation, Inc.
 //
index 0be51916942a07c2fa42d9e3d8d450e969ae3fbb..77c3497a8906739be1fb6426019baee43c751245 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <chrono>
 
index bd157325945681d7ce82b88e5dd53939b9e495e0..fd47e839baa5e270ebac31ebd7d08f5f813f3497 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do run { target c++17 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <memory>
 #include <testsuite_hooks.h>
index 2a7d79201b160d3ebddb8580e12c4dd65525b8c6..3c687187a24bdba7df33264577f9a5494ee150ab 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index 237754dd780058b28b1c858529bce53392095ae5..a0d2d5bea22d3994dbe7972cb2d7aa61f06e46dd 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-normal-namespace "" }
+// { dg-add-options no_pch }
 
 #include <expected>
 
index b592e6410036790799f60208cd191b809b5b2057..6deaa68a75e84ba926e63c1124047865cc87fb89 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do preprocess { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 8a8c11a79c2e53da9b85b4f8e8d1c505a6830cb9..3baa7219b5c6064b48f14fe268f6cde42e5a42c3 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <functional>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_bind_front
-# error "Feature test macro for bind_front is missing"
+# error "Feature test macro for bind_front is missing in <functional>"
 #elif __cpp_lib_bind_front < 201902L
-# error "Feature test macro for bind_front has wrong value"
+# error "Feature test macro for bind_front has wrong value in <functional>"
 #endif
 
+#include <testsuite_hooks.h>
+
 using std::bind_front;
 using std::is_same_v;
 using std::is_invocable_v;
index 0ea892612f66dc1727e9b125861db7d90676a787..7d349377c895765d7ae21691926b094e89bd410f 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <functional>
-#include <memory>
-#include <string>
-#include <testsuite_hooks.h>
 
 // P1651R0 bind_front should not unwrap reference_wrapper
 
 #ifndef __cpp_lib_bind_front
-# error "Feature test macro for bind_front is missing"
+# error "Feature test macro for bind_front is missing in <functional>"
 #elif __cpp_lib_bind_front < 201907L
-# error "Feature test macro for bind_front has wrong value"
+# error "Feature test macro for bind_front has wrong value in <functional>"
 #endif
 
+#include <memory>
+#include <string>
+#include <testsuite_hooks.h>
+
 void functionAcceptingStringView(std::string_view) { }
 
 void
index 1a4c9327f63e246cbdaf15f6802f76569c105fb1..6cb0875c36026881b128449cd8752dddeb0440b0 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <functional>
 
index 38367f70534a8d314d6696223d729fec053edbc1..9356a400c01689d47d9f28f5d7d4ef3c943d503c 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <functional>
 
index 122e2116f1a491423276e1d471851e8cf1f0dc62..4e13e8701daa48c93aaf9750254aca4b4d0b9249 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <functional>
 
 #ifndef __cpp_lib_constexpr_functional
-# error "Feature test macro for constexpr invoke is missing"
+# error "Feature test macro for constexpr invoke is missing in <functional>"
 #elif __cpp_lib_constexpr_functional < 201907L
-# error "Feature test macro for constexpr invoke has wrong value"
+# error "Feature test macro for constexpr invoke has wrong value in <functional>"
 #endif
 
 constexpr int inc(int i) { return i + 1; }
index 2dc71aea504f128855a2b70e9d2eb24ac89856cb..cdd5505ba442c26d760c7d97adbbfa8821a0cebf 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 6f1a8dd317564837f0043824cf898b76f56db72b..eb9f49f3da3b25cfee8eb7c7a1085977b9efa4ef 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <functional>
-#include <string_view>
-#include <cstring>
-#include <cctype>
-#include <algorithm>
-#include <testsuite_hooks.h>
 
 #if __STDC_HOSTED__
 # ifndef __cpp_lib_boyer_moore_searcher
-#  error "Feature-test macro for searchers missing"
+#  error "Feature-test macro for searchers missing in <functional>"
 # elif __cpp_lib_boyer_moore_searcher < 201603
-#  error "Feature-test macro for searchers has wrong value"
+#  error "Feature-test macro for searchers has wrong value in <functional>"
 # endif
 #endif // HOSTED
 
+#include <string_view>
+#include <cstring>
+#include <cctype>
+#include <algorithm>
+#include <testsuite_hooks.h>
+
 using std::default_searcher;
 #if __STDC_HOSTED__
 using std::boyer_moore_searcher;
index 245fec96315e3528c09de6cbcd4e05c9dfde12a9..585d8a1d3825f425df402ad8579944e6e8c6ae75 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index 3e2bf573c0b935647f25b565f1966acc302edfe7..3979e16319f1e4808096d55c482955a237236c6d 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index dd417cf6a2a4eabdee782a06255601e27dbf3f02..4c7d848dcb5d282b02f09fe7a1d50610a7a07ef0 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
 
 #ifndef __cpp_lib_bounded_array_traits
-# error "Feature test macro for is_bounded_array is missing"
+# error "Feature test macro for is_bounded_array is missing in <type_traits>"
 #elif __cpp_lib_bounded_array_traits < 201902L
-# error "Feature test macro for is_bounded_array has wrong value"
+# error "Feature test macro for is_bounded_array has wrong value in <type_traits>"
 #endif
 
+#include <testsuite_tr1.h>
+
 void test01()
 {
   using std::is_bounded_array;
index 6232f6ac67133b71dbe4bb5f9c3660015075ac7f..51ca384ee715bc517d8fa22db45b407f87ba2b8b 100644 (file)
@@ -1,4 +1,6 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
+
 #include <type_traits>
 
 #ifndef __cpp_lib_is_layout_compatible
index be6079d6b5e9c63d132c9ff12b4e459e5871a653..d44442e6a2c9529162570223fd765f6d1aac91a9 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 87695bcd6e8802ded9267021425f18b1618fef0e..27268eec08f549b72ec2c622f477a9453fa72afc 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2015-2023 Free Software Foundation, Inc.
 //
index ac39c8c7b2fd723933ce9e7f7d9faabe8a6c326a..c5d4afbe70971eed18eeb61940ab0f12b8401906 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2015-2023 Free Software Foundation, Inc.
 //
index 247daf21fab5b895e1f235d1d8ceac65d5c51d85..185f4aaee7469d0d557c202e397d2dcbeccf41ce 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2015-2023 Free Software Foundation, Inc.
 //
index 45cee6915f068e0a59af38b54160403b0e9fd91b..fa5a642197fb945e0633418321f17d807d2fef64 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
-#include <utility>
-#include <array>
-#include <tuple>
-#include <queue>
-#include <stack>
 
 #if defined(test_std_is_nothrow_swappable)
 #  ifndef __cpp_lib_is_swappable
@@ -41,6 +35,13 @@ using is_nothrow_swappable = std::__is_nothrow_swappable<T>;
         "test_std_is_nothrow_swappable_ext need to be defined"
 #endif
 
+#include <utility>
+#include <array>
+#include <tuple>
+#include <queue>
+#include <stack>
+#include <testsuite_tr1.h>
+
 namespace funny {
   struct F {};
   void swap(F&, F&) = delete;
index aa2bade16c266fd1b3a192fc22bfe052a1309237..1b0dc1e2a8c2bd3c8d91ed62be5d4d7e6df564c5 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_nothrow_swappable_with missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_nothrow_swappable_with has wrong value"
-#endif
-
 namespace std
 {
   typedef short test_type;
index f90f19cb747682132e97db8d7dea8de0282fb54b..509b5e78d3f511a337846765c318b8e85afc7558 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_nothrow_swappable_with missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_nothrow_swappable_with has wrong value"
-#endif
-
 void test01()
 {
   // Check for required typedefs
index 50fa29723c5bb72362f30cd0497efe145dcfd902..b138f84ddab9d568739bc730c4a1cea88406ab54 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2016-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
 
 #ifndef __cpp_lib_is_swappable
 # error "Feature-test macro for is_nothrow_swappable_with missing"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for is_nothrow_swappable_with has wrong value"
 #endif
 
+#include <testsuite_tr1.h>
+
 namespace funny {
   struct T0 {};
 
index fb4652d932dbf604ef06099518f9c975ce03bd3a..4d67c8c8df176e8f85edb479afdba01dbd0049d9 100644 (file)
@@ -1,4 +1,6 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
+
 #include <type_traits>
 
 #ifndef __cpp_lib_is_pointer_interconvertible
index 82882237e9d0986be1e81d688f17d7f7ab14e585..9347cc0a2ce6bbd114a1a35a453fe89f41e982e7 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 43dc03be8a8b86d8387a3c6c6a67e1348eb4420c..9f3bd0277ece912482aa9ed43fce60385758b0f3 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <type_traits>
 
index 698cb48d3b30fcdfbb00612b7c97e34d57fc6aa6..7ef8a2574013a75bf0796f764c2b085ee093073b 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index ad3e12e5a71aac8e745f1bb566712dbc1364323f..0d47bd59ca8121d6f55f741761b455058e0f6c01 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_swappable missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_swappable has wrong value"
-#endif
-
 namespace std
 {
   typedef short test_type;
index 3356d08ef6976e4ec7b9ab3ce49c50945714d529..ac742473066e921f7c722b1498823a7674a2a8d9 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_swappable missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_swappable has wrong value"
-#endif
-
 void test01()
 {
   // Check for required typedefs
index ac87539315812c3682edd1cbdfe1d07ea3c3483c..6b3ee1857bd64c270e81a638e58af0d81d090a2f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2015-2023 Free Software Foundation, Inc.
 //
index c532c8323d11ffd0208708d5a22407e3baaa4576..210509a2e7b1f1d832e429c86f2d5aeacc67a8d9 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
-#include <utility>
-#include <array>
-#include <tuple>
-#include <queue>
-#include <stack>
 
 #if defined(test_std_is_swappable)
 #  ifndef __cpp_lib_is_swappable
@@ -41,6 +35,13 @@ using is_swappable = std::__is_swappable<T>;
         "need to be defined"
 #endif
 
+#include <utility>
+#include <array>
+#include <tuple>
+#include <queue>
+#include <stack>
+#include <testsuite_tr1.h>
+
 namespace funny {
   struct F {};
   void swap(F&, F&) = delete;
index 1f3bc6b12d888e5e47fd10f4d6ddf14381451d6e..c1c90aef5a2b519cd0e1927496385c0ccfeb9b32 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_swappable_with missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_swappable_with has wrong value"
-#endif
-
 namespace std
 {
   typedef short test_type;
index d7354e74351ce17a9f07436edc95bde78c97f8c0..8fc3b9a5d52a215e2ba472e75949149f3e23c1f9 100644 (file)
 
 #include <type_traits>
 
-#ifndef __cpp_lib_is_swappable
-# error "Feature-test macro for is_swappable_with missing"
-#elif __cpp_lib_is_swappable != 201603
-# error "Feature-test macro for is_swappable_with has wrong value"
-#endif
-
 void test01()
 {
   // Check for required typedefs
index c5294485ae158b4b8d91e9d1a29eb68da7e1fb6f..51ee09abf91b762639a4c65307f313d60b959bd6 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2016-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
 
 #ifndef __cpp_lib_is_swappable
 # error "Feature-test macro for is_swappable_with missing"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for is_swappable_with has wrong value"
 #endif
 
+#include <testsuite_tr1.h>
+
 namespace funny {
   struct T0 {};
 
index 495e1e9d89e624152e5697bb306ab444aa7e976c..7c0b422746e5e4060fcaa6e90517ab0d650525d1 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <type_traits>
-#include <testsuite_tr1.h>
 
 #ifndef __cpp_lib_bounded_array_traits
 # error "Feature test macro for is_unbounded_array is missing"
@@ -26,6 +26,8 @@
 # error "Feature test macro for is_unbounded_array has wrong value"
 #endif
 
+#include <testsuite_tr1.h>
+
 void test01()
 {
   using std::is_unbounded_array;
index ffe2398f80c8e6ec34671c6bfac6301b6a64af44..5498f42add5894a483a93d62db81b200af9fc3ca 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <functional>
 
index b051a63f729f57c38291a113c85ec929b6228d5b..7721141b8b47f6f843e4a37264684a56ddedda47 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index a969ca5077e7a743fff2d4650017bbe3647d0217..dd392e2ec00d62f59efed1cda2c6991a58a5714d 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <optional>
 
index 3edfb5cf9b1607d541b5e1e8ee3251e7953e0841..cb523c8dc1680c828ac72d879e67f50c09a38d4d 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++17 }  }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2013-2023 Free Software Foundation, Inc.
 //
index 2fd52f7c19446daa3af498439bf42674c3c31467..7e63d425796244eb86ec70fa73030424063778d2 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 3c86eda9e65363a1bb59248a01d8d70c51532a2c..e5de0bf8de6332809ee603078e72248bde883aa6 100644 (file)
 
 // { dg-do compile { target c++11 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <memory>
 
 #if __cplusplus >= 201402L
 // The feature-test macro is only defined for C++14 and later.
 # if __cpp_lib_transparent_operators < 201510
-#  error "__cpp_lib_transparent_operators < 201510"
+#  error "__cpp_lib_transparent_operators < 201510 in <memory>"
 # endif
 #endif
 
index 2df559bd0ddf6199f5f43616f9a568001d242e4d..877c1c93b46fe29ac9cc4957a04cf4cf34602589 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <type_traits>
-#include <testsuite_tr1.h>
 
 #ifndef __cpp_lib_reference_from_temporary
-# error "Feature test macro for reference_from_temporary is missing in <version>"
+# error "Feature test macro for reference_from_temporary is missing in <type_traits>"
 #elif __cpp_lib_reference_from_temporary < 202202L
-# error "Feature test macro for reference_from_temporary has wrong value in <version>"
+# error "Feature test macro for reference_from_temporary has wrong value in <type_traits>"
 #endif
 
+#include <testsuite_tr1.h>
+
 void test01()
 {
   using std::reference_constructs_from_temporary;
index 7f42c1909617e328732aee209520d704f68bc278..761b9505c34738ca60393a18804a989ccd7c9388 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 6f790ac6c8ea99bc9b4f1b112da732853454eecb..e972f8af9e5696d0415cf16a3493b7e71a88db87 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-require-effective-target gthreads }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
+// { dg-add-options no_pch }
 
 #include <memory>
 
index 534036287fce12090e7adfd89404193edbe6301d..5062a3d1ebff21e6ca36863f4beb6a0ec20f0558 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
 
index d78ee698eb1c76f2cd718b7e09d8dcc170218f36..5b8af326b6729c762bd2f13988c8ac2f5b604c34 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-options "-fno-lifetime-dse -O0" }
 // { dg-do run { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 // C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
 
index 9c0fc5dda39ed5de1a107ec46ec34e9310d360f1..bc83c33256410ad4845b45c36bfb8ee23ed8536e 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 // C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
 
index ae1ee684a5001b0d4dc3698c075225ca57588615..43d902f37687e6fc60c7ace5e0bd5ce78720c27f 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <chrono>
 
index e51ea4dbbbe3fd1c536d374e827ae57cc170e20a..86b01ee305359b3730cd0890b00cd41c8d729f56 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <charconv>
 
index 5284680460a3b8d9cdac7b30816dc9793818aa07..c1010534e80c704dd2e0c256b16104e9fbbc875f 100644 (file)
@@ -1,12 +1,14 @@
 // { dg-do run { target c++26 } }
+// { dg-add-options no_pch }
 
 #include <charconv>
-#include <testsuite_hooks.h>
 
 #if defined(__cpp_lib_to_chars) && __cpp_lib_to_chars < 202306L
 # error "Feature-test macro for std::to_chars has wrong value in <charconv>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test_result()
 {
index df1804e1ff4db5ddfce86ff7c7962b54d502919d..41bb35b93f6d53f6004d84afaad0838f2508ee14 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++23 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index c970238b29701fefb1e4ae028a85e2cd6053b369..520f3f4405b360514ac31c64371cae0a91482e91 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index f800d7c09e5e138e35d3329fef2b9bd2ea01007d..0002eb8985c64694d5e98693e8a4087ba0a26bea 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 39678408b83f1904d2aa30efde7edae1a25a65be..7863e283a61edf2270c9beea4291c684449eff07 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <tuple>
-#include <testsuite_hooks.h>
 
 #if  __cpp_lib_apply < 201603
 #  error "__cpp_lib_apply < 201603"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index 8f672c96d029e101928af674bbb570e5f0c95409..5e843038f7523a8e22ba03f38fe0c168982c203e 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile { target c++20 } }
 // FIXME [!HOSTED]: avoidable std::allocator usage
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 //
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
index bacb401b95714d38a6e57e8068a2342b708982f7..a1fac7d34de39878ab8c3f7ca4ebabaef087a076 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <tuple>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_make_from_tuple
-# error "Feature-test macro for make_from_tuple missing."
+# error "Feature-test macro for make_from_tuple missing in <tuple>"
 #elif __cpp_lib_make_from_tuple < 201606
-# error "Feature-test macro for make_from_tuple has the wrong value."
+# error "Feature-test macro for make_from_tuple has the wrong value in <tuple>"
 #endif
 
+#include <testsuite_hooks.h>
+
 template <class T, class U, class V>
 struct ThreeParam
 {
index 774968d87e5f0de5307948fcb7175ad092c6912a..1d04ab03abd490161f01c73c9b1d41fc7c14c5ed 100644 (file)
@@ -2,15 +2,17 @@
 // { dg-do run { target c++23 } }
 // FIXME [!HOSTED]: avoidable std::allocator usage
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <tuple>
-#include <memory>
-#include <testsuite_hooks.h>
 
 #if __cpp_lib_ranges_zip != 202110L
 # error "Feature-test macro __cpp_lib_ranges_zip has wrong value in <tuple>"
 #endif
 
+#include <memory>
+#include <testsuite_hooks.h>
+
 using std::tuple;
 using std::pair;
 using std::allocator;
index 79624288c210447ac0cc2be917e26e26a9a8ed2a..78e5ef8fae913c6af0a41ef3c63754ade1850af4 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2014-2023 Free Software Foundation, Inc.
 //
index 02cbd929c941d2293b1ce2c1164e00ddedd06ddd..3c6957c5531c7090c8bba3abca2fe87b2e9da1fc 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <memory>
 
index 37ef1b7356a90018dbfa16b821a30ad204a3a5e7..8976e6be0c89929137126aa8e93552d0df6d3707 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-do run { target c++20 } }
 // { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2020-2023 Free Software Foundation, Inc.
 //
index 98d801b39690b7809714b60c69a162601ec9ac8d..f0a93cdaa85fbf1c9904fb430e86394dd19f4ee9 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 
index b64a6cd82c0f59146674705023e4655eaf9a7846..66753f0232e8da1b07c9d70c8419a4cce41c4309 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do preprocess { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index d3a33f842ca01489d33e8ee7b8e277585ae6ea00..ae9643b13490995879f03e841a3d41c6de14b0ca 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <type_traits>
 
index e2e91fdb34b9f927afd4cae369ec949ae0cf3e7f..12090e132d232dbaf2cbeec88bac123ec52eec26 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 55fac029aafb301c037e728021ef043ffa5d08cd..886fd2dab5cdfce480efb1ae4de2cc6da7fda63b 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <variant>
 
index de04c5eb2944f731e8c3222ba09be9cf665d054b..fd251dd37684243857b2c82be478ace4509609c0 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index ade83096475e9a3db87e8bf2c765f0edb6f2598c..76e881dec751bedc11baa0fe1a37f3927744fb58 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <variant>
 
index bff88a2898a49114aa3d4304f0d0366ae224e98f..b18ee44e3a1c38b405b2d3075f2ab8e707e00f48 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <type_traits>
 
index 3c88b7c163b9915ac5e622b2f297a16610b8b2ec..edef8c9f9118d38f27d1c9820e08d4ce1f25d8fe 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <string>
 
@@ -10,7 +11,6 @@
 #endif
 #endif
 
-
 #include <cstring>
 #include <testsuite_hooks.h>
 
index 8c60708a3d3a347e3ca220d2acf354264811818f..7822c89497b1cb6f04dbb845bbe682ae5dffd3fc 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
+// { dg-add-options no_pch }
 
 #include <string>
 
index 40cea53b590785b241c2ad2ec0c889057c708634..44c8391ebc2aab9fae20baf5dbc598502f318c51 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
+// { dg-add-options no_pch }
 
 #include <string>
 
index b85496a16f10154abd6653505678f9d1c241f7d5..23aae3c4dd225a120737ea94f2932191e7a139dc 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <string>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <string>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <string>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index 3837c896f6b02d79bdd9d829f6a880f6ef13592b..727e96012716cd19074253cabfd7754df7fc1d54 100644 (file)
@@ -1,18 +1,10 @@
 // { dg-do run { target c++11 } }
 // { dg-require-namedlocale "de_DE.ISO8859-15" }
+// { dg-add-options no_pch }
 
 // C++11 21.5 Numeric Conversions [string.conversions]
 
 #include <string>
-#include <format>
-#include <limits>
-#include <locale>
-#include <cstdio>
-#include <testsuite_hooks.h>
-
-namespace test
-{
-// Canonical version of std::to_string(double) as specified in the standard.
 
 #if __cplusplus > 202302L
 
@@ -22,16 +14,29 @@ namespace test
 # error "Feature-test macro for std::to_string has wrong value in <string>"
 #endif
 
-static std::string to_string(float val) { return std::format("{}", val); }
-static std::string to_string(double val) { return std::format("{}", val); }
-static std::string to_string(long double val) { return std::format("{}", val); }
-
 #else
 
 #ifdef __cpp_lib_to_string
 # error "__cpp_lib_to_string should not be defined for C++23"
 #endif
 
+#endif
+
+#include <format>
+#include <limits>
+#include <locale>
+#include <cstdio>
+#include <testsuite_hooks.h>
+
+namespace test
+{
+// Canonical version of std::to_string(double) as specified in the standard.
+
+#if __cpp_lib_to_string
+static std::string to_string(float val) { return std::format("{}", val); }
+static std::string to_string(double val) { return std::format("{}", val); }
+static std::string to_string(long double val) { return std::format("{}", val); }
+#else
 static std::string to_string(double val)
 {
   std::string str(100, '9');
index 630e06fff8ffa2367a05296339c6677b25701c19..669becc36f14ea4b319a0fde07cfe0beb444067c 100644 (file)
@@ -1,4 +1,6 @@
 // { dg-do compile }
+// { dg-add-options no_pch }
+
 #include <version>
 
 #if __cplusplus > 202302L
index 865b17905ff4ef23e4fdb7dd5ffe3f3b64fb36a4..71dd4dfb67f6cb071bb0b3fd2383c977a550b04c 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index f59cad37722796eef61fc20f6610f7cd87fd3efd..629af6a9971cfe09d5b06078e7f40e5027aa76ec 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2021-2023 Free Software Foundation, Inc.
 //
index 2f1b6848b76a8a5d6171e14ce33e342ef9ffbe79..c351d30618091281d3adf3a669b2fff94d57c583 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2021-2023 Free Software Foundation, Inc.
 //
index b91fea03c626faa5d327fc99c053227adea831e4..92919155cb3c27fe8842a9ee881e18cf13ac8d2a 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <string_view>
 
index 0db1673d8d389fa531c2e80a2537cc2364cc9dae..34fb51a096b400feb43bd65408e745c37462f180 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2017-2023 Free Software Foundation, Inc.
 //
index 805b84dea588b11a8c6835340ea49a539fc90cd8..efddcb23fabf76db3acf70d2bb593aaa26a40438 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2017-2023 Free Software Foundation, Inc.
 //
index 908163a2635a24bf69ec064031250dcc1584b339..1a6fde2bbb7862753c00cdf404538e1835bf5a07 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index e4029bdc06bc810d8f7514396aa20cd42e45ffa6..ff773fd9fabeff480ddadafbc66ee35b2a91b1ff 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++20 } }
-//
+// { dg-add-options no_pch }
+
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
index 9c2eedb5c15a7dae80ede80ec87638d0dec90b2f..1e158abc275b912f31751d72f8f00fb76aab2d1a 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
index be83073dc3d7c664385ba160d17550f7af1b024e..a192073bdd4860b4304fbea1c98a814843673612 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
index 266df756db97a29b6e388beafa8bcf9371a39f38..234a4f01a8b4cd1df95dc69d0150376c4e6475d4 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2011-2023 Free Software Foundation, Inc.
 //
index 6acf1837a68f1906606c4f8e6be18fee3cdfc42c..07a64003c8e63004758405eb48af6cfad4444c15 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++20 } }
-//
+// { dg-add-options no_pch }
+
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
index 7bccd1f79aa7fa483283b933f437c7da18438d87..5d06f2dda9372bf53bdbe73ebef8f74586842c19 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17 } }
-//
+// { dg-add-options no_pch }
+
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
index 889d4aa2e0b4635fff13ece3320f2be294a568fc..bf64d298579d333bb52c69a4d5f0dee343047d52 100644 (file)
@@ -26,6 +26,6 @@ int n1 = std::get<1>(a);
 int n2 = std::get<1>(std::move(a));
 int n3 = std::get<1>(ca);
 
-// { dg-error "static assertion failed" "" { target *-*-* } 389 }
-// { dg-error "static assertion failed" "" { target *-*-* } 398 }
-// { dg-error "static assertion failed" "" { target *-*-* } 407 }
+// { dg-error "static assertion failed" "" { target *-*-* } 391 }
+// { dg-error "static assertion failed" "" { target *-*-* } 400 }
+// { dg-error "static assertion failed" "" { target *-*-* } 409 }
index 30885d1476a828a2950cf77fbb369f90fd4932b4..317ce50fc57e6515c61ba9c392f85393c182c6dd 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <deque>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <deque>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <deque>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index 2a73b98a293efa0663cfe020604892b18736ea37..973a6323f05cd089b54ecafa5ea5b89a8f897d53 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <forward_list>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <forward_list>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <forward_list>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index d6b06b13326d3fe0ed6e42a171804fc9794a4e77..5d32098c17d40d0cd77e4724ffcebecb4d1e8b3f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <list>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <list>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <list>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index 078d1297404894009a59afbc98c124e9aa31d0cc..61090eb810e1c577e8697d61ebcd5a12fd8de14d 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,8 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <map>
-#include <string>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <map>"
@@ -27,6 +26,9 @@
 # error "Feature-test macro for erase_if has wrong value in <map>"
 #endif
 
+#include <string>
+#include <testsuite_hooks.h>
+
 auto is_odd_pair = [](const std::pair<const int, std::string>& p)
 {
   return p.first % 2 != 0;
index 334ef00b79e4d408b918f6ee7b6f80770e96c6c9..1a1009e34b35de4bcc7546b8e46eca2187cc223d 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <queue>
 
index a2bbf3ad603949cb8123dda0f6537bdadcd3b6f5..8e629fa9e0ce0dd5f1cb6105bdf6b5c71ba1aa4a 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <set>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <set>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <set>"
 #endif
 
+#include <testsuite_hooks.h>
+
 auto is_odd = [](const int i) { return i % 2 != 0; };
 
 void
index 40bb7a0b1f3fd14643ce83206720a1eff6e39967..c1c0a7e619b000fc6b1aa86c10bdbbb934741073 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <span>
 
index 533d1721a534203e7e8291b824ebc0076dadd525..2931c0b14ed6eeb674559cbeda5b9c4328c306e1 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 77240952909557f5ae7f1f647608f7ba00cd55fd..8df4d33b729e6242b4f79aec7c815220d03ec5c1 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <stack>
 
index 696fc05afa430727aefd3c1f85468cbc0816d99e..201145a651c1c81e17526f35eea8dcdc861490b2 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,8 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <unordered_map>
-#include <string>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <unordered_map>"
@@ -27,6 +26,9 @@
 # error "Feature-test macro for erase_if has wrong value in <unordered_map>"
 #endif
 
+#include <string>
+#include <testsuite_hooks.h>
+
 auto is_odd_pair = [](const std::pair<const int, std::string>& p)
 {
   return p.first % 2 != 0;
index cfeca606c55a496fd788c53512ca9c51c488a98c..cf6ee50f9ef169a83dba302eef35acd306616b34 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <unordered_map>
 
index 2384136e769e54222591b0249e2d820daa965bc7..7a298b7a11cab8b0663a4a07351e5ae1e38badbf 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <unordered_set>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <unordered_set>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <unordered_set>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index b2f13990b56e7c0e8ca088a50612d7562f4ff3f9..5da7c31cc525c1f38b87485b61c8ae98bb1beb0c 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <unordered_set>
 
index 9a784583304ae040a0db5984efe9926221ccca47..7bf8651124062b887e838a8b998920d71d0b929c 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 // { dg-xfail-if "not supported" { debug_mode } }
 
 #include <vector>
index 2135b6b8fb3a9c17635c2050e94072eb5258f033..780a9ca54ba97b460113210aa580df51b7bd170d 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <vector>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_erase_if
 # error "Feature-test macro for erase_if missing in <vector>"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for erase_if has wrong value in <vector>"
 #endif
 
+#include <testsuite_hooks.h>
+
 void
 test01()
 {
index 50a10d217f6232a5e8b7fd6b8030563bb43fee03..ef11ebbbfc6d74c1e60dc3aebb5283df179da2f4 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index ed2b64885166ff3becf504902b96cf03a4a6eff1..24d208cff2bd8999b7e1d2d81c45031c9a295e08 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <iterator>
 
index 92db53885958f333a900d0a6978f0e0ab1db8a93..5fcfb1e2e62a231d8e7c61903f8bc676adb0d8bd 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2016-2023 Free Software Foundation, Inc.
 //
 // <http://www.gnu.org/licenses/>.
 
 #include <algorithm>
-#include <functional>
 
 #ifndef __cpp_lib_clamp
-# error "Feature-test macro for clamp missing"
+# error "Feature-test macro for clamp missing in <algorithm>"
 #elif __cpp_lib_clamp != 201603
-# error "Feature-test macro for clamp has wrong value"
+# error "Feature-test macro for clamp has wrong value in <algorithm>"
 #endif
 
+#include <functional>
+
 static_assert(std::clamp(2, 0, 1) == 1);
 static_assert(std::clamp(2, 1, 0, std::greater<int>()) == 1);
index f696e13547759320a024052397156d1a6c71623b..8cbe6c1483571ef38ea7b10a7c24f325cbb67d2d 100644 (file)
 #include <functional>
 #include <testsuite_api.h>
 
-#ifndef __cpp_lib_clamp
-# error "Feature-test macro for clamp missing"
-#elif __cpp_lib_clamp != 201603
-# error "Feature-test macro for clamp has wrong value"
-#endif
-
 namespace std
 {
   using __gnu_test::NonDefaultConstructible;
index d591b11bd5ff48a1e387e2bc8286c0abcfcc6f4f..258b7495a5d5b82d6c8a17a44fab9581a2e90b65 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 0774032b0a020d85924082f01b91dab9ef84dd7c..0f4143ea79481ea2b7569ce8703723defc890b2c 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <algorithm>
 
index b08a065117480c418c1ccbe20e00d558a07e0515..d5cbc225412702d419d44ba7beee95fad67f5d3d 100644 (file)
@@ -1,13 +1,15 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <algorithm>
-#include <ranges>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_fold != 202207L
 # error "Feature-test macro __cpp_lib_ranges_fold has wrong value in <algorithm>"
 #endif
 
+#include <ranges>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index bac78011837ae1faf02ef0f019733481b39c5237..f8dc94f640dd1ef947b493703ab7b1bb27e85298 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++17 } }
 // { dg-require-effective-target tbb_backend }
+// { dg-add-options no_pch }
 
 #include <numeric>
 
index 27ae1e42c5ba58d34ba1ab7b3383aa873d5dd920..000b2e0a144c25b9d15054083b0bc194babca583 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++17 } }
 // { dg-require-effective-target tbb_backend }
+// { dg-add-options no_pch }
 
 #include <execution>
 
index a397c3db8aeba0a562219a9b967b7b0e3eb3353c..c128695a309f362772fc81794c926ddb57c2832d 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++17 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index da5b73e585921afd3aa7598d0eabe6f5e8c2a113..7b9ae1bc75e594fd12916c7e14834acddb804450 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++17 } }
 // { dg-require-effective-target tbb_backend }
+// { dg-add-options no_pch }
 
 #include <memory>
 
index 4d758eb92921f655e3ccd0456e2f06c619203b88..da593562428b0c64df82d5ea626b02c9fae100f6 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++17 } }
 // { dg-require-effective-target tbb_backend }
+// { dg-add-options no_pch }
 
 #include <algorithm>
 
index 034019b3da243b1f002b1864fa72c28a46458372..37b42957e37da1c853d8c5e2cb883392977097e5 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <bit>
 
index c179944e6e83abbea37d4c45f1fca666bca9661a..aa59604d18663cf04baf5e71fbadadf86a3a4987 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index dc7249df68a2e1b9abd0e255d212630ebbb2d37c..b488a8b2df21ef749be8ce2a7e1530aa224eb330 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <bit>
 
index 296adf75682e5cc37183cb69bf28df43e4a61ef1..079780a81b097b42646bfb32febbb0998e57cc12 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 07d0865214ec3cb30a23acb0e567e5de17fa476f..94db9e15eb64222f0935dc7a7d67270a8141eed2 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 36207bb5149287d9fa16351942e65d948f44ec17..ecb6e1bdb119454dcdb0693caef6b8aa571767c0 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <bit>
 
index 229926cd82c1b1cf523a7801c7ca65c05ab6ab4e..f4d7bce23356bd8534b4d319b0e2013215439ffd 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <complex>
 
index 6276e2de405465d8483a1b8f0d0e97b5e20f2bc6..2b1a5a932f4609cfa8016db1be5d08f8d94c5b0d 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 2822be355633fa44ccc42ffac197f7a03845c430..24a40e47cf40f13a8512c90df6ad049710fe4056 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <bit>
 
index 7e02cab40869a28b6ad02e4261df1991cb83ee5c..5f6ad56600c3a3eed757b64bceb23c45bc9ced6e 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 1475a5a734820cb1822b36658e52ab807864c65c..3083682bd1adfcd80cb1b015e8ef2482484b772a 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <numeric>
 
index 18828a7d403b9afd9e658e3215a9258fbdde2627..1fa16af8316f5c479aabb40d3a09f41b3ad80ba4 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++17 } }
+// { dg-add-options no_pch }
 
 #include <numeric>
 
index 65b715437f549398f0007a06e4c5026e32ee7063..8aedc47f1ce63e2fea7ab7be923f14e3fac39fa1 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <cmath>
 
index 63206ba8e3fe91944272572ec7b59932a89e4f45..a6a57733a0ff1654523700d147ffd23e03615c55 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 0f8a16e656e7f25c41881a5d1734bf29c11b53b6..51218f38f2d5f985b9130b42541b06d74b1926fe 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <numeric>
 
index 63206ba8e3fe91944272572ec7b59932a89e4f45..a6a57733a0ff1654523700d147ffd23e03615c55 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index f41551c21486be1f0df8b56a9ac6bc811b557ab0..8443efba0861be11a7d150f52746b0b0e3c0c701 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <numbers>
 
index d9e791e2843b41d58f8ee32a89ed41bc614c2793..d55b44c025703471f26e4cc02df3fe5d1a1e451b 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 749451a4c816b894e0bed1cfeef080e3b1fd9f68..0551f260ade5e6ac75a7955d49631aab8940f646 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-options "-fno-inline" }
 // { dg-do run { target c++26 } }
+// { dg-add-options no_pch }
 // { dg-additional-files "filebuf_members-1.txt" }
 
 #include <fstream>
index 46c400d12cee34fecc48edc408734548e14aa0d1..10a559859e32aeb3b0ee7b6c96d198236a6eb9c0 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++26 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 2e99707df86d0012b5e57f60168e6d8de5644007..c34882fa4e971d89a61b3a5732c8c9b13367586e 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { xfail *-*-vxworks* } }
+// { dg-add-options no_pch }
 
 #include <ios>
 
index ddb7fd691608c497f1852636c43dfbd3a73e0b3f..55c7ad4876fe4491ad17f130af9cbde37c6d1459 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { xfail *-*-vxworks* } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index d48ad0900864159ccd3c3fdd9d81d225fbf61c86..01ce127fbda422adcaaa443fca51eb0f9f47bac4 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
+// { dg-add-options no_pch }
 
 #include <syncstream>
 
index ad1ab383b1c6c6f06d432a59df3dfa0c8378fe79..a973c448404c79dc0d506959fd41d5a2a3ade2bc 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index d48ad0900864159ccd3c3fdd9d81d225fbf61c86..01ce127fbda422adcaaa443fca51eb0f9f47bac4 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
+// { dg-add-options no_pch }
 
 #include <syncstream>
 
index ad1ab383b1c6c6f06d432a59df3dfa0c8378fe79..a973c448404c79dc0d506959fd41d5a2a3ade2bc 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target cxx11_abi }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index bd45a38ae3c8cf91e94daa73e688d7c74a4e5ccc..4f384dbdd5418a74c8f55366b5b43765f65ef8ed 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <spanstream>
 
index 7434e3b292e4bcdca326a501916f61b82bbc4f8b..4e01113ff9854c39e714bcfc4dc2d078df596597 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++23 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 809c6c02443381655b1521e7f462b9d2cf8c916a..a852c42f39771c33f43669cf6a8746c0ff94b655 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do run { target c++20 } }
 // { dg-require-thread-fence "" }
+// { dg-add-options no_pch }
 
 #include <atomic>
 
index 8192f73dd478726a000e283f4672ce94bbac5725..372a63129ff7dbcaa1dc8f807abc2ec20a74bd31 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <atomic>
 
index 3ded103b4fe0df4d5c188e7d2f3b5b031a598272..2fe83d58aaaa816aea9f66406ba38732033a40e7 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <atomic>
 
index d07bdeece203fb67838b3315d072489f35557af0..35bff9fcf7a047e56f83fe49f7668268c7a86f50 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 70d37d4d8cdee0166222ce003bc6dea32a6dc12b..bcdb969b0c0f0fc128644916110dcfc2cc015dec 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <stdatomic.h>
 
index 26fa76d0229c937d4a3a134403155f1cf3c8799c..5feb08936d8315a1f3f40e3ddcd7795e90dbb15b 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do preprocess { target c++23 } }
+// { dg-add-options no_pch }
 
 // <stdatomic.h> is not freestanding.
 // { dg-require-effective-target hosted }
index e7f62a17f24101a6f4377267abd9dfc2e9d77880..f1e981eb2f8795433b42570a82e77afbd09afebb 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
+// { dg-add-options no_pch }
 
 #include <barrier>
 
index d33597a0c4093eaa55e084e09610c25ee9bc97ae..d11eacc825b4c981dffb73d5e9cd0b9dad5207ff 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target gthreads }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 8c173977bcb2b1a902e20448b93521ca359a3660..03a867c3131ccc6e11d885815a418a16effe15fe 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <condition_variable>
 
index 754bd912eb4d604603916347f3bdbdc616c73193..e698915ed6fd218fb92107876ac2fb336712c66d 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index e4063af378405e7b6d04ed60c086fcdcc12751ec..ff3d428efecacd7cb4b277de4ec101cd42e29737 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-gthreads "" }
+// { dg-add-options no_pch }
 
 #include <thread>
 
index 48241e981eacb1d62dc078730654377e83d7769a..00dfbd881a9314b349ad4e1a539cd134cd058ac8 100644 (file)
@@ -18,6 +18,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 6f4da1120129c0bbc8acc44e2ededbacde127e3b..ba0a95bad88c6d215412fed9415d21ca63a74e7c 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <latch>
 
index 4ebd9e67ec782816e8fb468386a1f8efee9592dd..15e325bd950fce5c0cbe9ffd97fd7028cac79563 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index c171afc6a7cc57bda469093452f873117cb77972..438b62f4814b0e0f7d78e7ac8e6a2e3205f79959 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17 } }
 // { dg-require-gthreads "" }
+// { dg-add-options no_pch }
 
 // Copyright (C) 2017-2023 Free Software Foundation, Inc.
 //
@@ -18,7 +19,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
 // NB: This file is for testing with NO OTHER INCLUDES.
 
 #include <mutex>
index f58e7f522dffe0af75e95842d59fec5b2e1aaa06..ced3c6c700c5c0ccd325a65562b79f1e2d9f2b6f 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <semaphore>
 
index 0bab29417acf3d8ff9da7c38426599d04fa40968..111984d8e0f652aad10a0145b7633b7dfc32c583 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 099c6c1c271f634de9772d0c26ddbc48084e1040..c2f1d8d4d76184b5099e8ff4549b0d0ab72d14bd 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <stop_token>
 
index 754bd912eb4d604603916347f3bdbdc616c73193..e698915ed6fd218fb92107876ac2fb336712c66d 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do compile { target c++20 } }
 // { dg-require-effective-target hosted }
+// { dg-add-options no_pch }
 
 #include <version>
 
index c9b277a462668af05817793fd0f4e420a7356731..05c1aa21541a61e332a14a41256d4b8efa69b866 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do preprocess { target c++11 } }
 // { dg-options "-fchar8_t" }
+// { dg-add-options no_pch }
 
 #include <atomic>
 #include <filesystem>
index effe382e06e6965c4428a77aa6a6eb866475d275..c009062b55cd996cc3409b0bcc0a704085a3cf6b 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do preprocess { target c++14 } }
+// { dg-add-options no_pch }
 
 #include <utility>
 #include <tuple>
@@ -8,10 +9,12 @@
 #include <chrono>
 #include <string>
 #include <complex>
+#include <algorithm>
 #include <iomanip>
 #include <shared_mutex>
 #include <map>
 #include <set>
+#include <iterator>
 
 #ifndef  __cpp_lib_integer_sequence
 #  error "__cpp_lib_integer_sequence"
index 61af30058bb410107857b60870f9218fa8b631e1..ed2c4da91edeeb896b8dbdf25605aa309069a860 100644 (file)
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++14 } }
+// { dg-add-options no_pch }
 
 #include <experimental/iterator>
-#include <sstream>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_experimental_ostream_joiner
 # error Feature-test macro is not defined.
@@ -27,6 +26,9 @@
 # error Feature-test macro has bad value.
 #endif
 
+#include <sstream>
+#include <testsuite_hooks.h>
+
 using std::experimental::ostream_joiner;
 
 void
index 505675d618cdb1ac436d6db8f612c9cddc97ee6b..6d447c36ed882e6c32821851f4cddfb7ad707aa7 100644 (file)
@@ -16,9 +16,9 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++14 } }
+// { dg-add-options no_pch }
 
 #include <experimental/numeric>
-#include <experimental/type_traits>
 
 #ifndef __cpp_lib_experimental_gcd_lcm
 # error "Feature-test macro for gcd missing"
@@ -26,6 +26,8 @@
 # error "Feature-test macro for gcd has wrong value"
 #endif
 
+#include <experimental/type_traits>
+
 using std::experimental::fundamentals_v2::gcd;
 using std::experimental::is_same_v;
 
index 27a427f7ea862b2d9ba64703cf7ca5492946e656..4deb60a142288824823cc9485755871ddb7fa391 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do run { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <experimental/scope>
-#include <testsuite_hooks.h>
 
 #ifndef __cpp_lib_experimental_scope
 # error Feature-test macro is not defined.
@@ -9,6 +9,8 @@
 # error Feature-test macro has bad value.
 #endif
 
+#include <testsuite_hooks.h>
+
 using std::experimental::unique_resource;
 
 void
index 0301b91e8690bfa40db1f78b014a172898e26836..0d056d68de8ede43bca4a7c1b1fe03044f62cd2f 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <concepts>
 
index 53a1e0069933beb46ff40e08357d020d0889370b..ebb054ac33b9fa92a9784edb7c74b2bdcf09c209 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do preprocess { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index 48c7d38a0a35904a8cfbef3c4364ba24d7b1d9be..2d36e0a47122a232f551cf714598164a099f6d25 100644 (file)
@@ -1,6 +1,12 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
+
+#if __cpp_lib_ranges_as_const != 202207L
+# error "Feature-test macro __cpp_lib_ranges_as_const has wrong value in <ranges>"
+#endif
+
 #include <algorithm>
 #include <span>
 #include <utility>
@@ -8,10 +14,6 @@
 #include <testsuite_hooks.h>
 #include <testsuite_iterators.h>
 
-#if __cpp_lib_ranges_as_const != 202207L
-# error "Feature-test macro __cpp_lib_ranges_as_const has wrong value in <ranges>"
-#endif
-
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 74223a699b68129b3f6b70d9f6a4b3fec7463ebb..487700773705ce7c6a9443e9c2e5ad85da3c3278 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <memory>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_as_rvalue != 202207L
 # error "Feature-test macro __cpp_lib_ranges_as_rvalue has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <memory>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 7b8d4bacc0c9d1d19eb569495710787a25379064..90eb608ca5eb829f68c00ced776e7df8f62eba1b 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <vector>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_chunk != 202202L
 # error "Feature-test macro __cpp_lib_ranges_chunk has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <vector>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 656c3c0d15e80e096f9452e44f6c726745fcba37..5d1ce55b485429756cd15b0f59bc364c238d58da 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <vector>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_chunk_by != 202202L
 # error "Feature-test macro __cpp_lib_ranges_chunk_by has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <vector>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index d5221680d6b85eb94b141aaeb29536de00986eff..c33aa9ff51e13edb88c2c6e384ba92e60e943cbd 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <memory>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_enumerate != 202302L
 # error "Feature-test macro __cpp_lib_ranges_enumerate has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <memory>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 7bed169d127aeac0e5f6dd3b024b229e20dd0a8c..8ab30a5277da602acdeccf9bd2c196d923443c2e 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <string>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_join_with != 202202L
 # error "Feature-test macro __cpp_lib_ranges_join_with has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <string>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 using namespace std::literals;
index 8dfb8715e5a716b3893377ccaaa43eb96f50df55..bafe9fbc4bf7c585c7f4d5bf80838d9eba6447a8 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <utility>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_slide != 202202L
 # error "Feature-test macro __cpp_lib_ranges_slide has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <utility>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index dfc413dbb66e5324f2eabaa4f97f731856a65c1a..e0af8c874fd5ca5d50288ff9155ce53ab18e8486 100644 (file)
@@ -1,14 +1,16 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_stride != 202207L
 # error "Feature-test macro __cpp_lib_ranges_stride has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 8938e92158ddbbbe69ed887af7bbb3f70c48b6d8..f69f965c0ce3cb12ca38a392f147e6ad38142154 100644 (file)
@@ -1,15 +1,17 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <sstream>
-#include <testsuite_hooks.h>
-#include <testsuite_iterators.h>
 
 #if __cpp_lib_ranges_cartesian_product != 202207L
 # error "Feature-test macro __cpp_lib_ranges_cartesian_product has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <sstream>
+#include <testsuite_hooks.h>
+#include <testsuite_iterators.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index dfa3fcaa37e5a04b59ba2049e7dfd64b26dc9b8b..e9fef0dce48a328444426c7208f527af8b1cc682 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
 
index 0f6e551c1e968ac800f360bee523aee63c4a2467..cad8c8dcbe722d8098bf3a0fdba74bea51f051dd 100644 (file)
@@ -1,14 +1,16 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
-#include <algorithm>
-#include <memory>
-#include <testsuite_hooks.h>
 
 #if __cpp_lib_ranges_repeat != 202207L
 # error "Feature-test macro __cpp_lib_ranges_repeat has wrong value in <ranges>"
 #endif
 
+#include <algorithm>
+#include <memory>
+#include <testsuite_hooks.h>
+
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index f68df67d3b3ee6a8c68c86a97c401adcf1b51a19..823264f32aa5802fe9b088a22a2a85e11de546ce 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do preprocess { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <version>
 
index f7c2c00a2cdcb6ddf3a8d01d46bc4542b1f15938..b7717aed92c77e160b501c3565884da843b36178 100644 (file)
@@ -1,16 +1,18 @@
 // { dg-do run { target c++23 } }
+// { dg-add-options no_pch }
 
 #include <ranges>
+
+#if __cpp_lib_ranges_zip != 202110L
+# error "Feature-test macro __cpp_lib_ranges_zip has wrong value in <ranges>"
+#endif
+
 #include <algorithm>
 #include <utility>
 #include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_iterators.h>
 
-#if __cpp_lib_ranges_zip != 202110L
-# error "Feature-test macro __cpp_lib_ranges_zip has wrong value in <ranges>"
-#endif
-
 namespace ranges = std::ranges;
 namespace views = std::views;
 
index 9f0e5ee5a9d0613758072743408e844d263dc61e..dd9e4059c1bc8a2eb68eaca3da99ddd496ba50de 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
 
 #include <chrono>