gcc/libstdc++-v3/testsuite/25_algorithms
Patrick Palka 813ad9c4dd libstdc++: Fix division by zero in std::sample
This fixes a division by zero in the selection-sampling std::__sample
overload when the input range is empty (and hence __unsampled_sz is 0).

libstdc++-v3/ChangeLog:

	* include/bits/stl_algo.h (__sample): Exit early when the
	input range is empty.
	* testsuite/25_algorithms/sample/3.cc: New test.
2020-09-21 20:48:23 -04:00
..
adjacent_find
advance/istreambuf_iterators
all_of
any_of
binary_search
clamp libstdc++: Ensure c++NN effective target present in all C++17 tests 2020-07-31 19:58:02 +01:00
copy libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
copy_backward libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
copy_if
copy_n
count
count_if
equal libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
equal_range
fill
fill_n
find
find_end
find_first_of
find_if
find_if_not
for_each libstdc++: Mark some more algorithms constexpr for C++20 2020-09-21 20:48:17 -04:00
generate
generate_n
headers
heap
includes
inplace_merge
is_heap
is_heap_until
is_partitioned
is_permutation
is_sorted
is_sorted_until
iter_swap
lexicographical_compare libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
lexicographical_compare_three_way
lower_bound
make_heap
max
max_element
merge
min
min_element
minmax
minmax_element
mismatch
move libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
move_backward libstdc++: Fix some ranges algos optimizations [PR95578] 2020-06-10 17:37:53 -04:00
next_permutation
none_of
nth_element
partial_sort
partial_sort_copy
partition
partition_copy
partition_point
pop_heap
prev_permutation
pstl libstdc++: Skip PSTL tests when installed TBB is too old [PR 96718] 2020-08-21 12:01:05 +01:00
push_heap
random_shuffle
remove
remove_copy
remove_copy_if
remove_if
replace
replace_copy
replace_copy_if
replace_if
reverse
reverse_copy
rotate
rotate_copy
sample libstdc++: Fix division by zero in std::sample 2020-09-21 20:48:23 -04:00
search libstdc++: Mark some more algorithms constexpr for C++20 2020-09-21 20:48:17 -04:00
search_n
set_difference
set_intersection
set_symmetric_difference
set_union
shift_left
shift_right
shuffle
sort
sort_heap
stable_partition
stable_sort
swap
swap_ranges
transform
unique
unique_copy
upper_bound
constexpr_macro.cc
cpp_lib_constexpr.cc