]> git.saurik.com Git - apple/xnu.git/blame - tests/safe_allocation_src/ctor.copy.cpp
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / safe_allocation_src / ctor.copy.cpp
CommitLineData
f427ee49
A
1//
2// Tests for
3// safe_allocation(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
11struct T {
12 int i;
13};
14
15T_DECL(ctor_copy, "safe_allocation.ctor.copy") {
16 static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
17 T_PASS("safe_allocation.ctor.copy passed");
18}