gcc/libstdc++-v3/testsuite/25_algorithms
François Dumont 630a286ab6 re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity)
2015-08-24  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/60519
	* include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
	New enum entry.
	* include/debug/functions.h (_Irreflexive_checker): New.
	(__is_irreflexive, __is_irreflexive_pred): New.
	* include/debug/macros.h
	(__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
	macros.
	(__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
	macros limited to post-C++11 mode.
	* include/debug/debug.h
	(__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
	New macros, use latter.
	(__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
	Likewise.
	* include/bits/stl_algo.h
	(partial_sort_copy): Add irreflexive debug check.
	(partial_sort_copy): Likewise.
	(lower_bound): Likewise.
	(upper_bound): Likewise.
	(equal_range): Likewise.
	(binary_search): Likewise.
	(inplace_merge): Likewise.
	(includes): Likewise.
	(next_permutation): Likewise.
	(prev_permutation): Likewise.
	(is_sorted_until): Likewise.
	(minmax_element): Likewise.
	(partial_sort): Likewise.
	(nth_element): Likewise.
	(sort): Likewise.
	(merge): Likewise.
	(stable_sort): Likewise.
	(set_union): Likewise.
	(set_intersection): Likewise.
	(set_difference): Likewise.
	(set_symmetric_difference): Likewise.
	(min_element): Likewise.
	(max_element): Likewise.
	* include/bits/stl_algobase.h
	(lower_bound): Likewise.
	(lexicographical_compare): Likewise.
	* include/bits/stl_heap.h
	(push_heap): Likewise.
	(pop_heap): Likewise.
	(make_heap): Likewise.
	(sort_heap): Likewise.
	(is_heap_until): Likewise.
	* testsuite/25_algorithms/lexicographical_compare/debug/
	irreflexive_neg.cc: New.
	* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
	* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
	New.

From-SVN: r227189
2015-08-25 20:27:03 +00:00
..
adjacent_find Update copyright years. 2015-01-05 13:33:28 +01:00
all_of Update copyright years. 2015-01-05 13:33:28 +01:00
any_of Update copyright years. 2015-01-05 13:33:28 +01:00
binary_search Update copyright years. 2015-01-05 13:33:28 +01:00
copy Update copyright years. 2015-01-05 13:33:28 +01:00
copy_backward Update copyright years. 2015-01-05 13:33:28 +01:00
copy_if Update copyright years. 2015-01-05 13:33:28 +01:00
copy_n Update copyright years. 2015-01-05 13:33:28 +01:00
count Update copyright years. 2015-01-05 13:33:28 +01:00
count_if Update copyright years. 2015-01-05 13:33:28 +01:00
equal Update copyright years. 2015-01-05 13:33:28 +01:00
equal_range Update copyright years. 2015-01-05 13:33:28 +01:00
fill Update copyright years. 2015-01-05 13:33:28 +01:00
fill_n Update copyright years. 2015-01-05 13:33:28 +01:00
find Update copyright years. 2015-01-05 13:33:28 +01:00
find_end Update copyright years. 2015-01-05 13:33:28 +01:00
find_first_of Update copyright years. 2015-01-05 13:33:28 +01:00
find_if Update copyright years. 2015-01-05 13:33:28 +01:00
find_if_not Update copyright years. 2015-01-05 13:33:28 +01:00
for_each Update copyright years. 2015-01-05 13:33:28 +01:00
generate/requirements/explicit_instantiation Update copyright years. 2015-01-05 13:33:28 +01:00
generate_n Update copyright years. 2015-01-05 13:33:28 +01:00
headers tuple (__is_tuple_like_impl): Disambiguate array in debug and profile modes. 2015-06-12 00:22:19 +01:00
heap Update copyright years. 2015-01-05 13:33:28 +01:00
includes Update copyright years. 2015-01-05 13:33:28 +01:00
inplace_merge Update copyright years. 2015-01-05 13:33:28 +01:00
is_heap Update copyright years. 2015-01-05 13:33:28 +01:00
is_heap_until Update copyright years. 2015-01-05 13:33:28 +01:00
is_partitioned Update copyright years. 2015-01-05 13:33:28 +01:00
is_permutation re PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the-end iterator) 2015-01-18 16:31:06 +00:00
is_sorted Update copyright years. 2015-01-05 13:33:28 +01:00
is_sorted_until Update copyright years. 2015-01-05 13:33:28 +01:00
iter_swap Update copyright years. 2015-01-05 13:33:28 +01:00
lexicographical_compare re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity) 2015-08-25 20:27:03 +00:00
lower_bound re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity) 2015-08-25 20:27:03 +00:00
make_heap Update copyright years. 2015-01-05 13:33:28 +01:00
max Update copyright years. 2015-01-05 13:33:28 +01:00
max_element Update copyright years. 2015-01-05 13:33:28 +01:00
merge Update copyright years. 2015-01-05 13:33:28 +01:00
min Update copyright years. 2015-01-05 13:33:28 +01:00
min_element Update copyright years. 2015-01-05 13:33:28 +01:00
minmax Update copyright years. 2015-01-05 13:33:28 +01:00
minmax_element Update copyright years. 2015-01-05 13:33:28 +01:00
mismatch Update copyright years. 2015-01-05 13:33:28 +01:00
move Update copyright years. 2015-01-05 13:33:28 +01:00
move_backward Update copyright years. 2015-01-05 13:33:28 +01:00
next_permutation Update copyright years. 2015-01-05 13:33:28 +01:00
none_of Update copyright years. 2015-01-05 13:33:28 +01:00
nth_element Update copyright years. 2015-01-05 13:33:28 +01:00
partial_sort Update copyright years. 2015-01-05 13:33:28 +01:00
partial_sort_copy re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity) 2015-08-25 20:27:03 +00:00
partition Update copyright years. 2015-01-05 13:33:28 +01:00
partition_copy Update copyright years. 2015-01-05 13:33:28 +01:00
partition_point Update copyright years. 2015-01-05 13:33:28 +01:00
pop_heap Update copyright years. 2015-01-05 13:33:28 +01:00
prev_permutation Update copyright years. 2015-01-05 13:33:28 +01:00
push_heap Update copyright years. 2015-01-05 13:33:28 +01:00
random_shuffle Update copyright years. 2015-01-05 13:33:28 +01:00
remove Update copyright years. 2015-01-05 13:33:28 +01:00
remove_copy/requirements/explicit_instantiation Update copyright years. 2015-01-05 13:33:28 +01:00
remove_copy_if Update copyright years. 2015-01-05 13:33:28 +01:00
remove_if Update copyright years. 2015-01-05 13:33:28 +01:00
replace Update copyright years. 2015-01-05 13:33:28 +01:00
replace_copy Update copyright years. 2015-01-05 13:33:28 +01:00
replace_copy_if Update copyright years. 2015-01-05 13:33:28 +01:00
replace_if Update copyright years. 2015-01-05 13:33:28 +01:00
reverse Update copyright years. 2015-01-05 13:33:28 +01:00
reverse_copy/explicit_instantiation Update copyright years. 2015-01-05 13:33:28 +01:00
rotate DR 488 PR libstdc++/58357 2015-01-17 03:15:52 +00:00
rotate_copy/requirements/explicit_instantiation Update copyright years. 2015-01-05 13:33:28 +01:00
search Update copyright years. 2015-01-05 13:33:28 +01:00
search_n Update copyright years. 2015-01-05 13:33:28 +01:00
set_difference Update copyright years. 2015-01-05 13:33:28 +01:00
set_intersection Update copyright years. 2015-01-05 13:33:28 +01:00
set_symmetric_difference Update copyright years. 2015-01-05 13:33:28 +01:00
set_union Update copyright years. 2015-01-05 13:33:28 +01:00
shuffle Update copyright years. 2015-01-05 13:33:28 +01:00
sort Update copyright years. 2015-01-05 13:33:28 +01:00
sort_heap Update copyright years. 2015-01-05 13:33:28 +01:00
stable_partition Update copyright years. 2015-01-05 13:33:28 +01:00
stable_sort Update copyright years. 2015-01-05 13:33:28 +01:00
swap Update copyright years. 2015-01-05 13:33:28 +01:00
swap_ranges Update copyright years. 2015-01-05 13:33:28 +01:00
transform/requirements/explicit_instantiation Update copyright years. 2015-01-05 13:33:28 +01:00
unique Update copyright years. 2015-01-05 13:33:28 +01:00
unique_copy Update copyright years. 2015-01-05 13:33:28 +01:00
upper_bound Update copyright years. 2015-01-05 13:33:28 +01:00