xref: /xnu-8792.61.2/tests/safe_allocation_src/assign.copy.cpp (revision 42e220869062b56f8d7d0726fd4c88954f87902c)
1 //
2 // Tests for
3 //  safe_allocation& operator=(safe_allocation const&) = delete;
4 //
5 
6 #include <libkern/c++/safe_allocation.h>
7 #include <type_traits>
8 #include <darwintest.h>
9 #include "test_utils.h"
10 
11 struct T { };
12 
13 T_DECL(assign_copy, "safe_allocation.assign.copy") {
14 	static_assert(!std::is_copy_assignable_v<test_safe_allocation<T> >);
15 	T_PASS("safe_allocation.assign.copy passed");
16 }
17