Lines Matching refs:memory
23 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests() local
24 for (RawT* ptr = memory; ptr != memory + 10; ++ptr) { in tests()
25 *ptr = RawT{ptr - memory}; // number from 0 to 9 in tests()
28 test_safe_allocation<QualT> array(memory, 10, libkern::adopt_memory); in tests()
31 CHECK(&element == memory + n); in tests()
37 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests() local
38 for (RawT* ptr = memory; ptr != memory + 10; ++ptr) { in tests()
39 *ptr = RawT{ptr - memory}; // number from 0 to 9 in tests()
42 test_safe_allocation<QualT> const array(memory, 10, libkern::adopt_memory); in tests()
45 CHECK(&element == memory + n); in tests()
52 RawT* memory = reinterpret_cast<RawT*>(malloc_allocator::allocate(10 * sizeof(RawT))); in tests() local
53 Alloc const array(memory, 10, libkern::adopt_memory); in tests()