]>
git.saurik.com Git - apple/xnu.git/blob - tests/bounded_ptr_src/ctor.default.cpp
3 // explicit bounded_ptr();
6 #include <libkern/c++/bounded_ptr.h>
7 #include <darwintest.h>
8 #include <darwintest_utils.h>
9 #include "test_utils.h"
11 #define _assert(...) T_ASSERT_TRUE((__VA_ARGS__), # __VA_ARGS__)
20 test_bounded_ptr
<T
> p
;
21 _assert(p
== nullptr);
24 test_bounded_ptr
<T
> p
{};
25 _assert(p
== nullptr);
29 T_DECL(ctor_default
, "bounded_ptr.ctor.default") {
33 tests
<T
const volatile>();