Implement P0457R2: 'String Prefix and Suffix Checking' for c++2a

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@319687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2017-12-04 20:11:38 +00:00
parent aeded2bf6e
commit 46b4ad5400
16 changed files with 928 additions and 1 deletions

View File

@@ -17,6 +17,12 @@
#include "test_macros.h"
#include "min_allocator.h"
struct veryLarge
{
long long a;
char b;
};
template <class S>
void
test(S s, typename S::value_type c, S expected)
@@ -42,4 +48,12 @@ int main()
test(S("12345678901234567890"), 'a', S("12345678901234567890a"));
}
#endif
{
// https://bugs.llvm.org/show_bug.cgi?id=31454
std::basic_string<veryLarge> s;
veryLarge vl;
s.push_back(vl);
s.push_back(vl);
s.push_back(vl);
}
}