llvm-project/libcxx/test/std/language.support/cmp
Arthur O'Dwyer bf20a09790 [libc++] [P1614] Implement the second half of [cmp.alg]: compare_{strong,weak,partial}_fallback.
The tests for these are just copy-pasted from the tests for std::{strong,weak,partial}_order,
and then I added an extra clause in each (test_2()) to test the stuff that's not just the same
as std::*_order.

This also includes the fix for https://wg21.link/LWG3465 (which falls naturally out of the
"you must write it three times" style, but I've added test cases for it also).

There is an action item here to go back and give good diagnostics for SFINAE failures
in these CPOs. I've filed this as https://github.com/llvm/llvm-project/issues/53456 .

Differential Revision: https://reviews.llvm.org/D111514
2022-01-27 17:48:01 -05:00
..
cmp.alg [libc++] [P1614] Implement the second half of [cmp.alg]: compare_{strong,weak,partial}_fallback. 2022-01-27 17:48:01 -05:00
cmp.categories.pre [libc++] Remove "// -*- C++ -*-" comments from all .cpp files. NFCI. 2021-10-01 12:06:59 -04:00
cmp.common [libcxx] removes `weak_equality` and `strong_equality` from <compare> 2021-05-10 20:45:04 +00:00
cmp.concept [libc++][nfc] Add TEST_HAS_NO_INT128. 2022-01-27 17:31:27 +01:00
cmp.partialord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
cmp.result [libc++] [P1614] Implement std::compare_three_way_result. 2021-08-18 10:01:24 -04:00
cmp.strongord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
cmp.weakord [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
compare.syn [libc++] [compare] Named comparison functions, is_eq etc. 2021-09-29 16:03:48 -04:00