mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-23 12:39:55 +00:00
19 lines
379 B
C++
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");
|
|
}
|