gcc/libstdc++-v3/testsuite/25_algorithms
Jonathan Wakely 43626143c9 libstdc++: Add freestanding feature test macros (P2407R5)
This C++26 change makes several classes "partially freestanding", but we
already fully supported them in freestanding mode. All we need to do is
define the new feature test macros and add tests for them.

libstdc++-v3/ChangeLog:

	* include/bits/version.def (freestanding_algorithm)
	(freestanding_array, freestanding_optional)
	(freestanding_string_view, freestanding_variant): Add.
	* include/bits/version.h: Regenerate.
	* include/std/algorithm (__glibcxx_want_freestanding_algorithm):
	Define.
	* include/std/array (__glibcxx_want_freestanding_array):
	Define.
	* include/std/optional (__glibcxx_want_freestanding_optional):
	Define.
	* include/std/string_view
	(__glibcxx_want_freestanding_string_view): Define.
	* include/std/variant (__glibcxx_want_freestanding_variant):
	Define.
	* testsuite/20_util/optional/version.cc: Add checks for
	__cpp_lib_freestanding_optional.
	* testsuite/20_util/variant/version.cc: Add checks for
	__cpp_lib_freestanding_variant.
	* testsuite/23_containers/array/tuple_interface/get_neg.cc:
	Adjust dg-error line numbers.
	* testsuite/21_strings/basic_string_view/requirements/version.cc:
	New test.
	* testsuite/23_containers/array/requirements/version.cc: New
	test.
	* testsuite/25_algorithms/fill_n/requirements/version.cc: New
	test.
	* testsuite/25_algorithms/swap_ranges/requirements/version.cc:
	New test.
2023-11-21 15:58:21 +00:00
..
adjacent_find libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
advance/istreambuf_iterators Update copyright years. 2023-01-16 11:52:17 +01:00
all_of libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
any_of libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
binary_search libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
clamp libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
contains libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
contains_subrange libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
copy_backward libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
copy_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
copy_n libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
count libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
count_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
equal libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
equal_range libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
fill libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
fill_n libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
find libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
find_end libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
find_first_of libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
find_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
find_if_not libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
find_last libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
find_last_if libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
find_last_if_not libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
fold_left libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
fold_right libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
for_each libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
generate libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
generate_n libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
headers Update copyright years. 2023-01-16 11:52:17 +01:00
heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
includes libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
inplace_merge libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
iota libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
is_heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
is_heap_until libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
is_partitioned libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
is_permutation libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
is_sorted libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
is_sorted_until libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
iter_swap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
lexicographical_compare libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
lexicographical_compare_three_way libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
lower_bound libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
make_heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
max libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
max_element libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
merge libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
min libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
min_element libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
minmax libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
minmax_element libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
mismatch libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
move libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
move_backward libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
next_permutation libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
none_of libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
nth_element libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
partial_sort libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
partial_sort_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
partition libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
partition_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
partition_point libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
pop_heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
prev_permutation libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
pstl libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
push_heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
random_shuffle libstdc++: Add deprecated attribute to std::random_shuffle declarations 2023-07-26 17:02:46 +01:00
remove libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
remove_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
remove_copy_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
remove_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
replace libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
replace_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
replace_copy_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
replace_if libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
reverse libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
reverse_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
rotate libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
rotate_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
sample libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
search libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
search_n libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
set_difference libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
set_intersection libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
set_symmetric_difference libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
set_union libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
shift_left libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
shift_right libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
shuffle libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
sort libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
sort_heap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
stable_partition libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
stable_sort libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
swap libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
swap_ranges libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
transform libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
unique libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
unique_copy libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
upper_bound libstdc++: Remove dg-options "-std=gnu++2a" from constrained algo tests 2023-09-15 21:57:39 +01:00
constexpr_macro.cc libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
cpp_lib_constexpr.cc libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00