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 // void assign(initializer_list<value_type> il);
17 #include "min_allocator.h"
18 #include "asan_testing.h"
20 template <typename Vec>
23 #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
24 v.assign({3, 4, 5, 6});
25 assert(v.size() == 4);
26 assert(is_contiguous_container_asan_correct(v));
37 typedef std::vector<int> V;
40 d2.reserve(10); // no reallocation during assign.
45 #if TEST_STD_VER >= 11
47 typedef std::vector<int, min_allocator<int>> V;
50 d2.reserve(10); // no reallocation during assign.