]>
git.saurik.com Git - apple/xnu.git/blob - tests/intrusive_shared_ptr_src/ctor.default.cpp
3 // intrusive_shared_ptr();
6 #include <libkern/c++/intrusive_shared_ptr.h>
7 #include <darwintest.h>
8 #include <darwintest_utils.h>
9 #include "test_policy.h"
18 libkern::intrusive_shared_ptr
<T
, test_policy
> ptr
;
19 CHECK(ptr
.get() == nullptr);
22 libkern::intrusive_shared_ptr
<T
, test_policy
> ptr
{};
23 CHECK(ptr
.get() == nullptr);
26 libkern::intrusive_shared_ptr
<T
, test_policy
> ptr
= libkern::intrusive_shared_ptr
<T
, test_policy
>();
27 CHECK(ptr
.get() == nullptr);
30 libkern::intrusive_shared_ptr
<T
, test_policy
> ptr
= {};
31 CHECK(ptr
.get() == nullptr);
35 T_DECL(ctor_default
, "intrusive_shared_ptr.ctor.default") {