// // Tests for // explicit bounded_ptr(); // #include #include #include #include "test_utils.h" #define _assert(...) T_ASSERT_TRUE((__VA_ARGS__), # __VA_ARGS__) struct T { }; template static void tests() { { test_bounded_ptr p; _assert(p == nullptr); } { test_bounded_ptr p{}; _assert(p == nullptr); } } T_DECL(ctor_default, "bounded_ptr.ctor.default", T_META_TAG_VM_PREFERRED) { tests(); tests(); tests(); tests(); }