]>
git.saurik.com Git - apple/xnu.git/blob - tests/intrusive_shared_ptr_src/compare.equal.nullptr.cpp
3 // template <typename T, typename R>
4 // bool operator==(intrusive_shared_ptr<T, R> const& x, std::nullptr_t);
6 // template <typename T, typename R>
7 // bool operator!=(intrusive_shared_ptr<T, R> const& x, std::nullptr_t);
9 // template <typename T, typename R>
10 // bool operator==(std::nullptr_t, intrusive_shared_ptr<T, R> const& x);
12 // template <typename T, typename R>
13 // bool operator!=(std::nullptr_t, intrusive_shared_ptr<T, R> const& x);
16 #include <libkern/c++/intrusive_shared_ptr.h>
17 #include <darwintest.h>
18 #include "test_policy.h"
22 template <typename T
, typename U
>
32 template <typename T
, typename U
>
42 template <typename T
, typename TQual
>
49 test_shared_ptr
<TQual
> const a(&obj
, libkern::no_retain
);
54 test_shared_ptr
<TQual
> const a
= nullptr;
59 T_DECL(compare_equal_nullptr
, "intrusive_shared_ptr.compare.equal.nullptr") {