Home
last modified time | relevance | path

Searched refs:expect_alive (Results 1 – 20 of 20) sorted by relevance

/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/
Dreset.pass.cpp25 const int expect_alive = IsArray ? 3 : 1; in test_reset_pointer() local
34 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_reset_pointer()
35 assert(A::count == expect_alive); in test_reset_pointer()
38 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer()
39 assert(A::count == (expect_alive * 2)); in test_reset_pointer()
41 assert(A::count == expect_alive); in test_reset_pointer()
46 std::unique_ptr<const VT> p(newValue<const VT>(expect_alive)); in test_reset_pointer()
47 assert(A::count == expect_alive); in test_reset_pointer()
50 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer()
51 assert(A::count == (expect_alive * 2)); in test_reset_pointer()
[all …]
Drelease.pass.cpp25 const int expect_alive = IsArray ? 3 : 1; in test_basic() local
34 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_basic()
35 assert(A::count == expect_alive); in test_basic()
38 assert(A::count == expect_alive); in test_basic()
Dswap.pass.cpp54 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
63 TT* p1 = newValueInit<VT>(expect_alive, 1); in test_basic()
65 TT* p2 = newValueInit<VT>(expect_alive, 2); in test_basic()
80 assert(TT::count == (expect_alive * 2)); in test_basic()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/
Dreset.pass.cpp24 const int expect_alive = IsArray ? 3 : 1; in test_reset_pointer() local
33 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_reset_pointer()
34 assert(A::count == expect_alive); in test_reset_pointer()
37 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer()
38 assert(A::count == (expect_alive * 2)); in test_reset_pointer()
40 assert(A::count == expect_alive); in test_reset_pointer()
45 std::unique_ptr<const VT> p(newValue<const VT>(expect_alive)); in test_reset_pointer()
46 assert(A::count == expect_alive); in test_reset_pointer()
49 A* new_value = newValue<VT>(expect_alive); in test_reset_pointer()
50 assert(A::count == (expect_alive * 2)); in test_reset_pointer()
[all …]
Drelease.pass.cpp24 const int expect_alive = IsArray ? 3 : 1; in test_basic() local
33 std::unique_ptr<VT> p(newValue<VT>(expect_alive)); in test_basic()
34 assert(A::count == expect_alive); in test_basic()
37 assert(A::count == expect_alive); in test_basic()
Dswap.pass.cpp53 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
62 TT* p1 = newValueInit<VT>(expect_alive, 1); in test_basic()
64 TT* p2 = newValueInit<VT>(expect_alive, 2); in test_basic()
79 assert(TT::count == (expect_alive * 2)); in test_basic()
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
Dmove.pass.cpp35 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
37 std::unique_ptr<VT> s1(newValue<VT>(expect_alive)); in test_basic()
39 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
40 assert(A::count == (expect_alive * 2)); in test_basic()
42 assert(A::count == expect_alive); in test_basic()
48 std::unique_ptr<VT, Deleter<VT> > s1(newValue<VT>(expect_alive), in test_basic()
51 std::unique_ptr<VT, Deleter<VT> > s2(newValue<VT>(expect_alive)); in test_basic()
52 assert(A::count == (expect_alive * 2)); in test_basic()
56 assert(A::count == expect_alive); in test_basic()
63 std::unique_ptr<VT, CDeleter<VT>&> s1(newValue<VT>(expect_alive), d1); in test_basic()
[all …]
Dnullptr.pass.cpp26 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
28 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
29 assert(A::count == expect_alive); in test_basic()
Dnull.pass.cpp25 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
27 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
28 assert(A::count == expect_alive); in test_basic()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
Dmove.pass.cpp35 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
37 std::unique_ptr<VT> s1(newValue<VT>(expect_alive)); in test_basic()
39 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
40 assert(A::count == (expect_alive * 2)); in test_basic()
42 assert(A::count == expect_alive); in test_basic()
48 std::unique_ptr<VT, Deleter<VT> > s1(newValue<VT>(expect_alive), in test_basic()
51 std::unique_ptr<VT, Deleter<VT> > s2(newValue<VT>(expect_alive)); in test_basic()
52 assert(A::count == (expect_alive * 2)); in test_basic()
56 assert(A::count == expect_alive); in test_basic()
63 std::unique_ptr<VT, CDeleter<VT>&> s1(newValue<VT>(expect_alive), d1); in test_basic()
[all …]
Dnull.pass.cpp25 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
27 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
28 assert(A::count == expect_alive); in test_basic()
Dnullptr.pass.cpp26 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
28 std::unique_ptr<VT> s2(newValue<VT>(expect_alive)); in test_basic()
29 assert(A::count == expect_alive); in test_basic()
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove.pass.cpp87 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
90 APtr s(newValue<VT>(expect_alive)); in test_basic()
95 assert(A::count == expect_alive); in test_basic()
102 APtr s(newValue<VT>(expect_alive), std::move(d)); in test_basic()
109 assert(A::count == expect_alive); in test_basic()
119 APtr s(newValue<VT>(expect_alive), d); in test_basic()
124 assert(A::count == expect_alive); in test_basic()
Dpointer.pass.cpp43 const int expect_alive = IsArray ? 5 : 1; in test_pointer() local
59 A* p = newValue<ValueT>(expect_alive); in test_pointer()
60 assert(A::count == expect_alive); in test_pointer()
66 A* p = newValue<ValueT>(expect_alive); in test_pointer()
67 assert(A::count == expect_alive); in test_pointer()
Dpointer_deleter.pass.cpp210 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
212 A* p = newValue<VT>(expect_alive); in test_basic()
213 assert(A::count == expect_alive); in test_basic()
220 A* p = newValue<VT>(expect_alive); in test_basic()
221 assert(A::count == expect_alive); in test_basic()
231 A* p = newValue<VT>(expect_alive); in test_basic()
232 assert(A::count == expect_alive); in test_basic()
243 A* p = newValue<VT>(expect_alive); in test_basic()
244 assert(A::count == expect_alive); in test_basic()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove.pass.cpp86 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
89 APtr s(newValue<VT>(expect_alive)); in test_basic()
94 assert(A::count == expect_alive); in test_basic()
101 APtr s(newValue<VT>(expect_alive), std::move(d)); in test_basic()
108 assert(A::count == expect_alive); in test_basic()
118 APtr s(newValue<VT>(expect_alive), d); in test_basic()
123 assert(A::count == expect_alive); in test_basic()
Dpointer.pass.cpp42 const int expect_alive = IsArray ? 5 : 1; in test_pointer() local
58 A* p = newValue<ValueT>(expect_alive); in test_pointer()
59 assert(A::count == expect_alive); in test_pointer()
65 A* p = newValue<ValueT>(expect_alive); in test_pointer()
66 assert(A::count == expect_alive); in test_pointer()
Dpointer_deleter.pass.cpp209 const int expect_alive = IsArray ? 5 : 1; in test_basic() local
211 A* p = newValue<VT>(expect_alive); in test_basic()
212 assert(A::count == expect_alive); in test_basic()
219 A* p = newValue<VT>(expect_alive); in test_basic()
220 assert(A::count == expect_alive); in test_basic()
230 A* p = newValue<VT>(expect_alive); in test_basic()
231 assert(A::count == expect_alive); in test_basic()
242 A* p = newValue<VT>(expect_alive); in test_basic()
243 assert(A::count == expect_alive); in test_basic()
/external/llvm-project/libcxx/test/support/
Dunique_ptr_test_helper.h99 void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) {
100 checkNumIncompleteTypeAlive(expect_alive);
103 checkNumIncompleteTypeAlive(expect_alive);
104 if (expect_alive == 0)
/external/libcxx/test/support/
Dunique_ptr_test_helper.h100 void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) {
101 checkNumIncompleteTypeAlive(expect_alive);
104 checkNumIncompleteTypeAlive(expect_alive);
105 if (expect_alive == 0)