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