]>
git.saurik.com Git - apple/xnu.git/blob - tests/intrusive_shared_ptr_src/deref.cpp
3 // T& operator*() const noexcept;
4 // T* operator->() const noexcept;
7 #include <libkern/c++/intrusive_shared_ptr.h>
8 #include <darwintest.h>
9 #include "test_policy.h"
20 tracked_shared_ptr
<T
> ptr(&obj
, libkern::no_retain
);
29 int const& ref
= ptr
->i
;
30 CHECK(&ref
== &obj
.i
);
35 T_DECL(deref
, "intrusive_shared_ptr.deref") {