mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 03:32:35 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user