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/db_front.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/db_front.pass.cpp')
-rw-r--r-- | libcxx/test/containers/sequences/list/db_front.pass.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/list/db_front.pass.cpp b/libcxx/test/containers/sequences/list/db_front.pass.cpp index fc37c5adc97..39fcf244860 100644 --- a/libcxx/test/containers/sequences/list/db_front.pass.cpp +++ b/libcxx/test/containers/sequences/list/db_front.pass.cpp @@ -21,8 +21,11 @@ #include <exception> #include <cstdlib> +#include "../../min_allocator.h" + int main() { + { typedef int T; typedef std::list<T> C; C c(1); @@ -30,6 +33,18 @@ int main() c.clear(); assert(c.front() == 0); assert(false); + } +#if __cplusplus >= 201103L + { + typedef int T; + typedef std::list<T, min_allocator<T>> C; + C c(1); + assert(c.front() == 0); + c.clear(); + assert(c.front() == 0); + assert(false); + } +#endif } #else |