1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // template <class... Args> iterator emplace(const_iterator pos, Args&&... args);
18 #include "test_macros.h"
19 #include "min_allocator.h"
20 #include "asan_testing.h"
27 assert(is_contiguous_container_asan_correct(v
));
29 v
.emplace(v
.begin(), v
.back());
31 assert(is_contiguous_container_asan_correct(v
));
36 assert(is_contiguous_container_asan_correct(v
));
38 v
.emplace(v
.begin(), v
.back());
40 assert(is_contiguous_container_asan_correct(v
));
43 std::vector
<int, min_allocator
<int>> v
;
45 assert(is_contiguous_container_asan_correct(v
));
47 v
.emplace(v
.begin(), v
.back());
49 assert(is_contiguous_container_asan_correct(v
));
52 std::vector
<int, min_allocator
<int>> v
;
54 assert(is_contiguous_container_asan_correct(v
));
56 v
.emplace(v
.begin(), v
.back());
58 assert(is_contiguous_container_asan_correct(v
));