llvm-project/libcxx/test/std/strings/string.view
Mark de Wever 70074cf397 [libc++] Fixes string_view comparison operators.
While implementing `operator<=>` for `string_view` (D130295) @philnik
pointed out `common_type` should be `type_identity`. Since it was an
existing issue that wasn't addressed.

This addresses the issue for both the new and existing equality and
comparison operators. The test is based on the example posted in
D130295.

Reviewed By: philnik, #libc, huixie90

Differential Revision: https://reviews.llvm.org/D131322
2022-08-10 19:38:50 +02:00
..
string.view.access [libc++] Granularize <iterator> includes 2022-06-10 22:43:57 +02:00
string.view.capacity [libc++] Granularize <iterator> includes 2022-06-10 22:43:57 +02:00
string.view.comparison [libc++] Fixes string_view comparison operators. 2022-08-10 19:38:50 +02:00
string.view.cons [libc++] Implement P2499R0 (`string_view` range constructor should be `explicit`) 2022-08-02 12:47:45 +02:00
string.view.deduct [libc++] Implement P2499R0 (`string_view` range constructor should be `explicit`) 2022-08-02 12:47:45 +02:00
string.view.find [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.hash [libc++] Complete the implementation of N4190 2022-06-22 10:13:03 +02:00
string.view.io [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.iterators [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.modifiers [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.nonmem [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.ops [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
string.view.synop [libc++][NFC] Fix minor errors and inconsistencies in the test suite 2021-08-20 12:14:24 -04:00
string.view.template [libc++][test] Fix unused variable warning in string_view tests 2022-06-02 13:33:37 -06:00
string_view.literals [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
char.bad.fail.cpp Rewording "static_assert" diagnostics 2022-07-25 07:22:54 -04:00
enable_borrowed_range.compile.pass.cpp [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
range_concept_conformance.compile.pass.cpp [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
traits_mismatch.compile.fail.cpp [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
trivially_copyable.compile.pass.cpp [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
types.pass.cpp [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00