Home
last modified time | relevance | path

Searched refs:test_safe_allocation (Results 1 – 14 of 14) sorted by relevance

/xnu-11417.121.6/tests/safe_allocation_src/
H A Dsize.cpp22 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 Dctor.default.cpp19 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 Dctor.nullptr.cpp19 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 Doperator.bool.cpp20 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 Dusage.two_dimensions.cpp21 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 Ddata.cpp20 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 Dcompare.equal.nullptr.cpp27 test_safe_allocation<T> const array(10, libkern::allocate_memory); in tests()
34 test_safe_allocation<T> const array = nullptr; in tests()
H A Doperator.subscript.cpp28 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 Dassign.copy.cpp14 static_assert(!std::is_copy_assignable_v<test_safe_allocation<T> >);
H A Dctor.copy.cpp16 static_assert(!std::is_copy_constructible_v<test_safe_allocation<T> >);
H A Dusage.for_loop.cpp17 test_safe_allocation<T> array(10, libkern::allocate_memory); in tests()
H A Dctor.allocate_zero.cpp19 test_safe_allocation<T> const array(10, libkern::allocate_memory_zero); in tests()
H A Dtest_utils.h103 using test_safe_allocation = libkern::safe_allocation<T, malloc_allocator, assert_trapping_policy>; variable
H A Dbegin_end.cpp23 using A = test_safe_allocation<T>; in tests()