Searched refs:test_safe_allocation (Results 1 – 14 of 14) sorted by relevance
| /xnu-12377.81.4/tests/safe_allocation_src/ |
| H A D | size.cpp | 22 test_safe_allocation<T> const array(10, libkern::allocate_memory); in tests() 27 test_safe_allocation<T> const array(memory, 10, libkern::adopt_memory); in tests() 31 test_safe_allocation<T> const array(nullptr, 0, libkern::adopt_memory); in tests() 35 test_safe_allocation<T> const array; in tests() 40 using Size = decltype(std::declval<test_safe_allocation<T> const&>().size()); in tests()
|
| H A D | ctor.default.cpp | 19 test_safe_allocation<T> array; in tests() 25 test_safe_allocation<T> array{}; in tests() 31 test_safe_allocation<T> array = test_safe_allocation<T>(); in tests()
|
| H A D | ctor.nullptr.cpp | 19 test_safe_allocation<T> array(nullptr); in tests() 25 test_safe_allocation<T> array{nullptr}; in tests() 31 test_safe_allocation<T> array = nullptr; in tests() 37 auto f = [](test_safe_allocation<T> array) { in tests()
|
| H A D | operator.bool.cpp | 20 test_safe_allocation<T> const array(10, libkern::allocate_memory); in tests() 28 test_safe_allocation<T> const array = nullptr; in tests() 36 static_assert(!std::is_convertible_v<test_safe_allocation<T>, bool>); in tests()
|
| H A D | usage.two_dimensions.cpp | 21 test_safe_allocation<test_safe_allocation<int> > array(10, libkern::allocate_memory); in tests() 24 array[i] = test_safe_allocation<int>(10, libkern::allocate_memory); in tests()
|
| H A D | data.cpp | 20 test_safe_allocation<T> array(10, libkern::allocate_memory); in tests() 25 test_safe_allocation<T> array(memory, 10, libkern::adopt_memory); in tests() 31 test_safe_allocation<T> const array(memory, 10, libkern::adopt_memory); in tests()
|
| H A D | compare.equal.nullptr.cpp | 27 test_safe_allocation<T> const array(10, libkern::allocate_memory); in tests() 34 test_safe_allocation<T> const array = nullptr; in tests()
|
| H A D | operator.subscript.cpp | 28 test_safe_allocation<QualT> array(memory, 10, libkern::adopt_memory); in tests() 42 test_safe_allocation<QualT> const array(memory, 10, libkern::adopt_memory); in tests()
|
| H A D | assign.copy.cpp | 14 static_assert(!std::is_copy_assignable_v<test_safe_allocation<T> >);
|
| H A D | ctor.copy.cpp | 16 static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
|
| H A D | usage.for_loop.cpp | 17 test_safe_allocation<T> array(10, libkern::allocate_memory); in tests()
|
| H A D | ctor.allocate_zero.cpp | 19 test_safe_allocation<T> const array(10, libkern::allocate_memory_zero); in tests()
|
| H A D | begin_end.cpp | 23 using A = test_safe_allocation<T>; in tests()
|
| H A D | test_utils.h | 103 using test_safe_allocation = libkern::safe_allocation<T, malloc_allocator, assert_trapping_policy>; variable
|