1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // vector(size_type n, const value_type& x, const allocator_type& a);
16 #include "min_allocator.h"
17 #include "asan_testing.h"
21 test(typename C::size_type n, const typename C::value_type& x,
22 const typename C::allocator_type& a)
25 assert(c.__invariants());
26 assert(a == c.get_allocator());
27 assert(c.size() == n);
28 assert(is_contiguous_container_asan_correct(c));
29 for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i)
35 test<std::vector<int> >(50, 3, std::allocator<int>());
36 #if __cplusplus >= 201103L
37 test<std::vector<int, min_allocator<int>> >(50, 3, min_allocator<int>());