/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/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/ |
D | reset.pass.cpp | 24 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 …]
|
D | release.pass.cpp | 24 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()
|
D | swap.pass.cpp | 53 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/ |
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/llvm-project/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 | 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()
|
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()
|
/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/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
D | move.pass.cpp | 86 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()
|
D | pointer.pass.cpp | 42 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()
|
D | pointer_deleter.pass.cpp | 209 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/ |
D | unique_ptr_test_helper.h | 99 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/ |
D | unique_ptr_test_helper.h | 100 void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) { 101 checkNumIncompleteTypeAlive(expect_alive); 104 checkNumIncompleteTypeAlive(expect_alive); 105 if (expect_alive == 0)
|