diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-06-25 16:08:47 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-06-25 16:08:47 +0000 |
commit | 866d4efa7f581fe4fb96c84f756a76ec43a3899d (patch) | |
tree | 89e20ee3fabc45a9d648fd007427b56eb21ad2a0 /libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp | |
parent | eb954482450e43579c5a7baad262f536955ac98a (diff) | |
download | bcm5719-llvm-866d4efa7f581fe4fb96c84f756a76ec43a3899d.tar.gz bcm5719-llvm-866d4efa7f581fe4fb96c84f756a76ec43a3899d.zip |
Implement full support for non-pointer pointers in custom allocators for list.
llvm-svn: 184859
Diffstat (limited to 'libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp')
-rw-r--r-- | libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp b/libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp index e3b63a24081..5bfab6fe20c 100644 --- a/libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp +++ b/libcxx/test/containers/sequences/list/list.modifiers/clear.pass.cpp @@ -14,10 +14,22 @@ #include <list> #include <cassert> +#include "../../../min_allocator.h" + int main() { + { int a[] = {1, 2, 3}; std::list<int> c(a, a+3); c.clear(); assert(c.empty()); + } +#if __cplusplus >= 201103L + { + int a[] = {1, 2, 3}; + std::list<int, min_allocator<int>> c(a, a+3); + c.clear(); + assert(c.empty()); + } +#endif } |