diff options
Diffstat (limited to 'libcxx/test/containers/sequences/vector/db_cindex.pass.cpp')
-rw-r--r-- | libcxx/test/containers/sequences/vector/db_cindex.pass.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/vector/db_cindex.pass.cpp b/libcxx/test/containers/sequences/vector/db_cindex.pass.cpp index ad330433594..c96fa3da381 100644 --- a/libcxx/test/containers/sequences/vector/db_cindex.pass.cpp +++ b/libcxx/test/containers/sequences/vector/db_cindex.pass.cpp @@ -21,14 +21,28 @@ #include <exception> #include <cstdlib> +#include "../../min_allocator.h" + int main() { + { typedef int T; typedef std::vector<T> C; const C c(1); assert(c[0] == 0); assert(c[1] == 0); assert(false); + } +#if __cplusplus >= 201103L + { + typedef int T; + typedef std::vector<T, min_allocator<T>> C; + const C c(1); + assert(c[0] == 0); + assert(c[1] == 0); + assert(false); + } +#endif } #else |