darling-xnu/tests/safe_allocation_src/ctor.copy.cpp
2023-05-16 21:41:14 -07:00

19 lines
379 B
C++

//
// Tests for
// safe_allocation(safe_allocation const&) = delete;
//
#include <libkern/c++/safe_allocation.h>
#include <type_traits>
#include <darwintest.h>
#include "test_utils.h"
struct T {
int i;
};
T_DECL(ctor_copy, "safe_allocation.ctor.copy") {
static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
T_PASS("safe_allocation.ctor.copy passed");
}