b857b17977
These tests verify that including C++11 headers fails to compile in C++98 mode. They use { dg-options "-std=gnu++98" } so that they are explicitly run in C++98 mode. This change also adds a target selector so that the tests will be skipped even if the dg-options directive is filtered out or overridden. This is in preparation for a desired future change where tests do not use -std options, so that they can be tested with e.g. --target_board=unix\"{-std=gnu++17,-std=gnu++20}\" In some cases the dg-options and dg-do directives need to be reordered, so that the -std=gnu++98 option is already added to the options before the target selector is checked. libstdc++-v3/ChangeLog: * testsuite/18_support/headers/cstdalign/std_c++0x_neg.cc: Add c++98_only target selector. * testsuite/18_support/headers/cstdbool/std_c++0x_neg.cc: Likewise. * testsuite/18_support/headers/cstdint/std_c++0x_neg.cc: Likewise. * testsuite/18_support/headers/new/synopsis_cxx98.cc: Likewise. * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Likewise. * testsuite/20_util/headers/type_traits/std_c++0x_neg.cc: Likewise. * testsuite/23_containers/headers/array/std_c++0x_neg.cc: Likewise. * testsuite/23_containers/headers/tuple/std_c++0x_neg.cc: Likewise. * testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc: Likewise. * testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc: Likewise. * testsuite/26_numerics/headers/ccomplex/std_c++0x_neg.cc: Likewise. * testsuite/26_numerics/headers/cfenv/std_c++0x_neg.cc: Likewise. * testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc: Likewise. * testsuite/26_numerics/headers/ctgmath/std_c++0x_neg.cc: Likewise. * testsuite/26_numerics/headers/random/std_c++0x_neg.cc: Likewise. * testsuite/27_io/headers/cinttypes/std_c++0x_neg.cc: Likewise. * testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Likewise. * testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Likewise. * testsuite/30_threads/headers/condition_variable/std_c++0x_neg.cc: Likewise. * testsuite/30_threads/headers/future/std_c++0x_neg.cc: Likewise. * testsuite/30_threads/headers/mutex/std_c++0x_neg.cc: Likewise. * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise. |
||
---|---|---|
.. | ||
add_const | ||
add_cv | ||
add_lvalue_reference | ||
add_pointer | ||
add_rvalue_reference | ||
add_volatile | ||
addressof | ||
align | ||
aligned_storage | ||
aligned_union | ||
alignment_of | ||
allocator | ||
allocator_traits | ||
any | ||
as_const | ||
assume_aligned | ||
auto_ptr | ||
bad_function_call | ||
bind | ||
bool_constant | ||
common_reference/requirements | ||
common_type/requirements | ||
conditional/requirements | ||
decay/requirements | ||
declval/requirements | ||
default_delete | ||
duration | ||
duration_cast | ||
enable_if/requirements | ||
enable_shared_from_this | ||
exchange | ||
extent | ||
forward | ||
from_chars | ||
function | ||
function_objects | ||
has_unique_object_representations | ||
has_virtual_destructor | ||
hash | ||
headers | ||
in_place | ||
integer_comparisons | ||
integer_sequence | ||
integral_constant | ||
is_abstract | ||
is_aggregate | ||
is_arithmetic | ||
is_array | ||
is_assignable | ||
is_base_of | ||
is_bounded_array | ||
is_class | ||
is_complete_or_unbounded | ||
is_compound | ||
is_const | ||
is_constant_evaluated | ||
is_constructible | ||
is_convertible | ||
is_copy_assignable | ||
is_copy_constructible | ||
is_default_constructible | ||
is_destructible | ||
is_empty | ||
is_enum | ||
is_final | ||
is_floating_point | ||
is_function | ||
is_fundamental | ||
is_implicitly_default_constructible | ||
is_integral | ||
is_invocable | ||
is_literal_type | ||
is_lvalue_reference | ||
is_member_function_pointer | ||
is_member_object_pointer | ||
is_member_pointer | ||
is_move_assignable | ||
is_move_constructible | ||
is_nothrow_assignable | ||
is_nothrow_constructible | ||
is_nothrow_convertible | ||
is_nothrow_copy_assignable | ||
is_nothrow_copy_constructible | ||
is_nothrow_default_constructible | ||
is_nothrow_destructible | ||
is_nothrow_invocable | ||
is_nothrow_move_assignable | ||
is_nothrow_move_constructible | ||
is_nothrow_swappable | ||
is_nothrow_swappable_with | ||
is_null_pointer | ||
is_object | ||
is_pod | ||
is_pointer | ||
is_polymorphic | ||
is_reference | ||
is_rvalue_reference | ||
is_same | ||
is_scalar | ||
is_signed | ||
is_standard_layout | ||
is_swappable | ||
is_swappable_with | ||
is_trivial | ||
is_trivially_assignable | ||
is_trivially_constructible | ||
is_trivially_copy_assignable | ||
is_trivially_copy_constructible | ||
is_trivially_copyable | ||
is_trivially_default_constructible | ||
is_trivially_destructible | ||
is_trivially_move_assignable | ||
is_trivially_move_constructible | ||
is_unbounded_array | ||
is_union | ||
is_unsigned | ||
is_void | ||
is_volatile | ||
logical_traits | ||
make_signed/requirements | ||
make_unsigned/requirements | ||
memory_resource | ||
monotonic_buffer_resource | ||
move | ||
move_if_noexcept | ||
nonesuch | ||
optional | ||
owner_less | ||
pair | ||
pointer_safety | ||
pointer_traits | ||
polymorphic_allocator | ||
rank | ||
ratio | ||
raw_storage_iterator | ||
reference_wrapper | ||
remove_all_extents | ||
remove_const | ||
remove_cv | ||
remove_cvref | ||
remove_extent | ||
remove_pointer | ||
remove_reference | ||
remove_volatile | ||
result_of | ||
scoped_allocator | ||
shared_ptr | ||
specialized_algorithms | ||
steady_clock | ||
synchronized_pool_resource | ||
system_clock | ||
time_point | ||
time_point_cast | ||
to_address | ||
to_chars | ||
tuple | ||
type_identity/requirements | ||
typeindex | ||
underlying_type/requirements | ||
unique_ptr | ||
unsynchronized_pool_resource | ||
unwrap_reference | ||
uses_allocator | ||
variant | ||
void_t | ||
weak_ptr | ||
rel_ops.cc | ||
temporary_buffer.cc | ||
variable_templates_for_traits.cc |