llvm-project/libcxx/test/std/strings
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
..
basic.string [libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink. 2020-11-26 10:13:12 +01:00
basic.string.hash [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
basic.string.literals [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
c.strings [libc++][test] Properly mark libc++-only XFAILs 2020-05-12 16:11:22 -07:00
char.traits [libc++] Remove _LIBCPP_CONSTEXPR_AFTER_CXX17_WITH_IS_CONSTANT_EVALUATED. 2020-11-24 11:04:21 -05:00
string.classes Support tests in freestanding 2019-02-04 20:31:13 +00:00
string.conversions [libc++] Get rid of iostreams in the to_string tests 2020-10-27 13:36:13 -04:00
string.view [libc++] Add a libc++ configuration that does not support localization 2020-10-27 14:56:30 -04:00
strings.erasure [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
strings.general Support tests in freestanding 2019-02-04 20:31:13 +00:00