Implement full support for non-pointer pointers in custom allocators for string. This completes the custom pointer support for the entire library.
llvm-svn: 185167
diff --git a/libcxx/test/strings/basic.string/string.iterators/rend.pass.cpp b/libcxx/test/strings/basic.string/string.iterators/rend.pass.cpp
index c0c1070..630565b 100644
--- a/libcxx/test/strings/basic.string/string.iterators/rend.pass.cpp
+++ b/libcxx/test/strings/basic.string/string.iterators/rend.pass.cpp
@@ -15,6 +15,8 @@
#include <string>
#include <cassert>
+#include "../min_allocator.h"
+
template <class S>
void
test(S s)
@@ -33,7 +35,16 @@
int main()
{
+ {
typedef std::string S;
test(S());
test(S("123"));
+ }
+#if __cplusplus >= 201103L
+ {
+ typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
+ test(S());
+ test(S("123"));
+ }
+#endif
}