llvm-project/libcxx/test/std/strings/basic.string
Marek Kurdej 841132efda [libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink.
This patch fixes the implementation as well as the tests that didn't actually test the wanted behaviour.
You'll find all the details in the bug report.
It adds as well deprecation warning for reserve() (without argument) and adds a test.

http://wg21.link/P0966R1
https://bugs.llvm.org/show_bug.cgi?id=45368
https://reviews.llvm.org/D54992

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D91778
2020-11-26 10:13:12 +01:00
..
string.access [libc++] Split off debug tests that were missed by ce1365f8f7 into test/libcxx 2020-10-14 12:02:37 -04:00
string.capacity [libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink. 2020-11-26 10:13:12 +01:00
string.cons [libc++] [libc++abi] Mark a few tests as unsupported/xfail on gcc-7/8/9. 2020-11-26 08:59:52 +01:00
string.ends_with [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
string.iterators [libc++] Fix several debug mode tests 2020-10-05 16:15:32 -04:00
string.modifiers [libc++] Fix several debug mode tests 2020-10-05 16:15:32 -04:00
string.nonmembers [libc++] Add a libc++ configuration that does not support localization 2020-10-27 14:56:30 -04:00
string.ops [libc++] NFC: Clean up a lot of old Lit features 2020-04-10 17:20:29 -04:00
string.require Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
string.starts_with [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
allocator_mismatch.compile.fail.cpp [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
char.bad.fail.cpp Support tests in freestanding 2019-02-04 20:31:13 +00:00
input_iterator.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
test_traits.h Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
traits_mismatch.compile.fail.cpp [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
types.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00