llvm-project/libcxx/test/std/algorithms/alg.sorting
Eric Fiselier a60d7fac09 Add diagnostics for min/max algorithms when a InputIterator is used.
These algorithms require a ForwardIterator or better. Ensure
we diagnose the contract violation at compile time instead of
of silently doing the wrong thing.

Further algorithms will be audited in upcoming patches.

llvm-svn: 340426
2018-08-22 17:47:13 +00:00
..
alg.binary.search More constexpr algorithms from P0202: lower_bound, upper_bound, equal_range, binary_search 2018-01-16 02:34:41 +00:00
alg.clamp [libcxx] [test] Untabify, NFC. 2017-07-29 00:55:10 +00:00
alg.heap.operations Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 2018-01-15 19:32:32 +00:00
alg.lex.comparison Work around GCC constexpr initialization bug 2018-02-03 01:48:21 +00:00
alg.merge [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
alg.min.max Add diagnostics for min/max algorithms when a InputIterator is used. 2018-08-22 17:47:13 +00:00
alg.nth.element Cleanup _LIBCPP_HAS_NO_<c++11-feature> in algorithm 2017-04-18 23:26:47 +00:00
alg.permutation.generators
alg.set.operations [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
alg.sort Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 2018-01-15 19:32:32 +00:00
nothing_to_do.pass.cpp