X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eb6b6ca394357805f2bdba989abae309f718b4d8..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tests/safe_allocation_src/ctor.copy.cpp diff --git a/tests/safe_allocation_src/ctor.copy.cpp b/tests/safe_allocation_src/ctor.copy.cpp new file mode 100644 index 000000000..1e2936c30 --- /dev/null +++ b/tests/safe_allocation_src/ctor.copy.cpp @@ -0,0 +1,18 @@ +// +// Tests for +// safe_allocation(safe_allocation const&) = delete; +// + +#include +#include +#include +#include "test_utils.h" + +struct T { + int i; +}; + +T_DECL(ctor_copy, "safe_allocation.ctor.copy") { + static_assert(!std::is_copy_constructible_v >); + T_PASS("safe_allocation.ctor.copy passed"); +}