Searched refs:expect_alive (Results 1 – 10 of 10) sorted by relevance
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/ |
D | reset.pass.cpp | 25 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 …]
|
D | release.pass.cpp | 25 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()
|
D | swap.pass.cpp | 54 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/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/ |
D | move.pass.cpp | 35 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 …]
|
D | nullptr.pass.cpp | 26 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()
|
D | null.pass.cpp | 25 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/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
D | move.pass.cpp | 87 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()
|
D | pointer.pass.cpp | 43 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()
|
D | pointer_deleter.pass.cpp | 210 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/libcxx/test/support/ |
D | unique_ptr_test_helper.h | 100 void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) { 102 checkNumIncompleteTypeAlive(expect_alive); 105 checkNumIncompleteTypeAlive(expect_alive); 106 if (expect_alive == 0)
|