]>
git.saurik.com Git - apple/xnu.git/blob - tests/bounded_ptr_src/operator_bool.cpp
3 // explicit operator bool() const;
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
= nullptr;
28 test_bounded_ptr
<T
> p(&t
, &t
, &t
+ 1);
37 T_DECL(operator_bool
, "bounded_ptr.operator.bool") {
41 tests
<T
const volatile>();