/external/llvm-project/libcxx/test/libcxx/language.support/support.dynamic/ |
D | new_faligned_allocation.pass.cpp | 36 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 37 typedef std::underlying_type<std::align_val_t>::type UT; in main() 41 static_assert((!std::is_constructible<std::align_val_t, std::size_t>::value), ""); in main() 43 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 45 static_assert((std::is_constructible<std::size_t, std::align_val_t>::value), ""); in main() 49 std::align_val_t a = std::align_val_t(0); in main() 50 std::align_val_t b = std::align_val_t(32); in main() 52 assert(a == std::align_val_t(0)); in main() 53 assert(b == std::align_val_t(32)); in main() 56 void *ptr = ::operator new(1, std::align_val_t(128)); in main() [all …]
|
/external/libcxx/test/libcxx/language.support/support.dynamic/ |
D | new_faligned_allocation.sh.cpp | 42 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 43 typedef std::underlying_type<std::align_val_t>::type UT; in main() 47 static_assert((!std::is_constructible<std::align_val_t, std::size_t>::value), ""); in main() 49 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 51 static_assert((std::is_constructible<std::size_t, std::align_val_t>::value), ""); in main() 55 std::align_val_t a = std::align_val_t(0); in main() 56 std::align_val_t b = std::align_val_t(32); in main() 58 assert(a == std::align_val_t(0)); in main() 59 assert(b == std::align_val_t(32)); in main() 62 void *ptr = ::operator new(1, std::align_val_t(128)); in main() [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | unavailable_aligned_allocation.cpp | 16 enum class align_val_t : std::size_t {}; enum 24 void *operator new(std::size_t __sz, std::align_val_t, const std::nothrow_t&) noexcept; 25 void *operator new[](std::size_t __sz, std::align_val_t, const std::nothrow_t&) noexcept; 26 void operator delete(void *, std::align_val_t, const std::nothrow_t&); 27 void operator delete[](void *, std::align_val_t, const std::nothrow_t&); 28 void operator delete(void*, std::size_t, std::align_val_t) noexcept; 29 void operator delete[](void*, std::size_t, std::align_val_t) noexcept; 31 void *operator new(std::size_t, std::align_val_t, long long); 53 p = new ((std::align_val_t)8) OveralignedS; in testOveraligned() 58 pa = new ((std::align_val_t)8) OveralignedS[4]; in testOveraligned() [all …]
|
D | std-align-val-t-in-operator-new.cpp | 12 enum class align_val_t : size_t {}; enum 14 enum align_val_t { enum 24 void *operator new(std::size_t count, std::align_val_t al) __attribute__((alloc_align(2))); 33 void *ptr_variable(int align) { return new (std::align_val_t(align)) A; } in ptr_variable() 34 void *ptr_align16() { return new (std::align_val_t(16)) A; } in ptr_align16() 35 void *ptr_align15() { return new (std::align_val_t(15)) A; } // expected-warning {{requested alignm… in ptr_align15() 46 return new (std::align_val_t(align)) S; in alloc_overaligned_struct_with_extra_variable_alignment() 49 return new (std::align_val_t(256)) S; in alloc_overaligned_struct_with_extra_256_alignment() 52 …return new (std::align_val_t(255)) S; // expected-warning {{requested alignment is not a power of … in alloc_overaligned_struct_with_extra_255_alignment() 55 std::align_val_t align_variable(int align) { return std::align_val_t(align); } in align_variable() [all …]
|
D | builtin-operator-new-delete.cpp | 20 enum class align_val_t : size_t {}; enum 22 enum align_val_t { enum 48 void* operator new ( size_t count, std::align_val_t al); // expected-note 1+ {{candidate function}} 49 void operator delete(void *, std::align_val_t); // expected-note 1+ {{candidate}} 54 void *operator new[](size_t count, std::align_val_t al); 55 void operator delete[](void*, std::align_val_t); 78 …__builtin_operator_new(NP, std::align_val_t(0)); // expected-error {{no matching function for call… in test_arg_types() 87 void *p = __builtin_operator_new(42, std::align_val_t(2)); in test_aligned_new() 88 __builtin_operator_delete(p, std::align_val_t(2)); in test_aligned_new() 93 …void *p = __builtin_operator_new(42, std::align_val_t(2)); // expected-error {{call to '__builtin_… in test_aligned_new() [all …]
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | new_delete_test.cpp | 19 enum class align_val_t : size_t {}; enum 26 void *operator new(size_t, std::align_val_t); 27 void *operator new[](size_t, std::align_val_t); 28 void *operator new(size_t, std::align_val_t, std::nothrow_t const&); 29 void *operator new[](size_t, std::align_val_t, std::nothrow_t const&); 37 void operator delete(void*, std::align_val_t) throw(); 38 void operator delete[](void*, std::align_val_t) throw(); 39 void operator delete(void*, std::align_val_t, std::nothrow_t const&); 40 void operator delete[](void*, std::align_val_t, std::nothrow_t const&); 41 void operator delete(void*, size_t, std::align_val_t) throw(); [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | cxx-dynamic-memory-analysis-order.cpp | 54 void *v = operator new(sizeof(int[2]), std::align_val_t(2)); in f() 55 operator delete(v, std::align_val_t(2)); in f() 61 v = operator new(sizeof(int[2]), std::align_val_t(2)); in f() 62 operator delete(v, 345345, std::align_val_t(2)); in f() 77 v = operator new(sizeof(int[2]), std::align_val_t(2), std::nothrow); in f() 78 operator delete(v, std::align_val_t(2), std::nothrow); in f() 106 void *v = operator new[](sizeof(int[2]), std::align_val_t(2)); in f() 107 operator delete[](v, std::align_val_t(2)); in f() 113 v = operator new[](sizeof(int[2]), std::align_val_t(2)); in f() 114 operator delete[](v, 345345, std::align_val_t(2)); in f() [all …]
|
/external/llvm-project/compiler-rt/test/scudo/ |
D | aligned-new.cpp | 20 enum class align_val_t : size_t {}; enum 27 void *operator new(size_t, std::align_val_t); 28 void *operator new[](size_t, std::align_val_t); 29 void *operator new(size_t, std::align_val_t, std::nothrow_t const&); 30 void *operator new[](size_t, std::align_val_t, std::nothrow_t const&); 38 void operator delete(void*, std::align_val_t) throw(); 39 void operator delete[](void*, std::align_val_t) throw(); 40 void operator delete(void*, std::align_val_t, std::nothrow_t const&); 41 void operator delete[](void*, std::align_val_t, std::nothrow_t const&); 42 void operator delete(void*, size_t, std::align_val_t) throw(); [all …]
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | cxx1z-aligned-allocation.cpp | 21 namespace std { enum class align_val_t : size_t {}; } enum 74 void *operator new(size_t, std::align_val_t); 75 void operator delete(void*, std::align_val_t); 76 void operator delete[](void*, std::align_val_t); 104 void *operator new[](size_t, std::align_val_t); 105 void operator delete[](void*, size_t, std::align_val_t); 140 void *operator new(size_t, std::align_val_t, Q); 142 void operator delete(void*, std::align_val_t, Q); 156 void *operator new(size_t, std::align_val_t, Q); 158 void operator delete(void*, std::align_val_t, Q); [all …]
|
/external/llvm-project/clang/test/CXX/expr/expr.unary/expr.new/ |
D | p20-0x.cpp | 6 namespace std { enum class align_val_t : size_t {}; } enum 35 static void* operator new(size_t, size_t, std::align_val_t); 37 static void operator delete(void*, size_t, std::align_val_t); // expected-note{{declared here}} 41 …U* p = new (0, std::align_val_t(0)) U; // expected-error{{'new' expression with placement argument… in testU() 46 static void* operator new(size_t, size_t, std::align_val_t); 48 static void operator delete(void*, std::align_val_t); 50 static void operator delete(void*, size_t, std::align_val_t); 54 V* p = new (0, std::align_val_t(0)) V; in testV() 59 static void* operator new(size_t, size_t, std::align_val_t); 62 static void operator delete(void*, size_t, std::align_val_t); // expected-note {{declared here}} [all …]
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_new_delete.cpp | 24 enum class align_val_t: __sanitizer::uptr {}; enum 86 void *operator new(__sanitizer::uptr size, std::align_val_t align); 87 void *operator new(__sanitizer::uptr size, std::align_val_t align) { in operator new() 92 void *operator new[](__sanitizer::uptr size, std::align_val_t align); 93 void *operator new[](__sanitizer::uptr size, std::align_val_t align) { in operator new[]() 98 void *operator new(__sanitizer::uptr size, std::align_val_t align, 100 void *operator new(__sanitizer::uptr size, std::align_val_t align, in operator new() 107 void *operator new[](__sanitizer::uptr size, std::align_val_t align, 109 void *operator new[](__sanitizer::uptr size, std::align_val_t align, in operator new[]() 160 void operator delete(void *ptr, std::align_val_t align) NOEXCEPT; [all …]
|
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/ |
D | aligned_delete_test.cpp | 17 enum class align_val_t : size_t {}; enum 24 void *operator new(size_t, std::align_val_t); 25 void *operator new[](size_t, std::align_val_t); 26 void *operator new(size_t, std::align_val_t, std::nothrow_t const&); 27 void *operator new[](size_t, std::align_val_t, std::nothrow_t const&); 35 void operator delete(void*, std::align_val_t) throw(); 36 void operator delete[](void*, std::align_val_t) throw(); 37 void operator delete(void*, std::align_val_t, std::nothrow_t const&); 38 void operator delete[](void*, std::align_val_t, std::nothrow_t const&); 39 void operator delete(void*, size_t, std::align_val_t) throw(); [all …]
|
/external/libcxx/test/std/language.support/support.dynamic/ |
D | align_val_t.pass.cpp | 20 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 21 … static_assert(std::is_same<std::underlying_type<std::align_val_t>::type, std::size_t>::value, ""); in main() 22 static_assert(!std::is_constructible<std::align_val_t, std::size_t>::value, ""); in main() 23 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 26 constexpr auto a = std::align_val_t(0); in main() 27 constexpr auto b = std::align_val_t(32); in main() 28 constexpr auto c = std::align_val_t(-1); in main() 30 static_assert(a == std::align_val_t(0), ""); in main() 31 static_assert(b == std::align_val_t(32), ""); in main()
|
/external/llvm-project/libcxx/test/std/language.support/support.dynamic/ |
D | align_val_t.pass.cpp | 19 static_assert(std::is_enum<std::align_val_t>::value, ""); in main() 20 … static_assert(std::is_same<std::underlying_type<std::align_val_t>::type, std::size_t>::value, ""); in main() 21 static_assert(!std::is_constructible<std::align_val_t, std::size_t>::value, ""); in main() 22 static_assert(!std::is_constructible<std::size_t, std::align_val_t>::value, ""); in main() 25 constexpr auto a = std::align_val_t(0); in main() 26 constexpr auto b = std::align_val_t(32); in main() 27 constexpr auto c = std::align_val_t(-1); in main() 29 static_assert(a == std::align_val_t(0), ""); in main() 30 static_assert(b == std::align_val_t(32), ""); in main()
|
/external/llvm-project/compiler-rt/lib/msan/ |
D | msan_new_delete.cpp | 28 enum class align_val_t: size_t {}; enum 57 void *operator new(size_t size, std::align_val_t align) in operator new() 60 void *operator new[](size_t size, std::align_val_t align) in operator new[]() 63 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new() 66 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]() 89 void operator delete(void *ptr, std::align_val_t align) NOEXCEPT in operator delete() 92 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT in operator delete[]() 95 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete() 98 void operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete[]() 101 void operator delete(void *ptr, size_t size, std::align_val_t align) NOEXCEPT in operator delete() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_new_delete.cpp | 27 enum class align_val_t: size_t {}; enum 51 void *operator new(size_t size, std::align_val_t align) in operator new() 54 void *operator new[](size_t size, std::align_val_t align) in operator new[]() 57 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new() 60 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]() 91 void operator delete(void *ptr, std::align_val_t align) NOEXCEPT in operator delete() 94 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT in operator delete[]() 97 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete() 100 void operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete[]() 103 void operator delete(void *ptr, size_t size, std::align_val_t align) NOEXCEPT in operator delete() [all …]
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_new_delete.cpp | 30 enum class align_val_t : size_t {}; enum 63 void *operator new(size_t size, std::align_val_t align) { in operator new() 67 void *operator new[](size_t size, std::align_val_t align) { in operator new[]() 71 void *operator new(size_t size, std::align_val_t align, in operator new() 76 void *operator new[](size_t size, std::align_val_t align, in operator new[]() 120 void operator delete(void *ptr, std::align_val_t align)NOEXCEPT { in operator delete() 124 void operator delete[](void *ptr, std::align_val_t align) NOEXCEPT { in operator delete[]() 128 void operator delete(void *ptr, std::align_val_t align, in operator delete() 133 void operator delete[](void *ptr, std::align_val_t align, in operator delete[]() 138 void operator delete(void *ptr, size_t size, std::align_val_t align)NOEXCEPT { in operator delete() [all …]
|
/external/llvm-project/libcxx/src/ |
D | new.cpp | 176 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 181 alignment = std::align_val_t(sizeof(void*)); in operator new() 208 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 227 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 234 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 253 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 262 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 269 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 276 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 283 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/libcxxabi/src/ |
D | stdlib_new_delete.cpp | 141 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 146 alignment = std::align_val_t(sizeof(void*)); in operator new() 173 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 192 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 199 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 218 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 230 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 237 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 244 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 251 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/libcxx/src/ |
D | new.cpp | 180 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 185 alignment = std::align_val_t(sizeof(void*)); in operator new() 212 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 231 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 238 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 257 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 268 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 275 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 282 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 289 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/llvm-project/libcxxabi/src/ |
D | stdlib_new_delete.cpp | 139 operator new(std::size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new() 144 alignment = std::align_val_t(sizeof(void*)); in operator new() 171 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new() 190 operator new[](size_t size, std::align_val_t alignment) _THROW_BAD_ALLOC in operator new[]() 197 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator new[]() 216 operator delete(void* ptr, std::align_val_t) _NOEXCEPT in operator delete() argument 225 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete() 232 operator delete(void* ptr, size_t, std::align_val_t alignment) _NOEXCEPT in operator delete() 239 operator delete[] (void* ptr, std::align_val_t alignment) _NOEXCEPT in operator delete[]() 246 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) _NOEXCEPT in operator delete[]() [all …]
|
/external/libcxx/include/ |
D | new | 36 enum class align_val_t : size_t {}; // C++17 48 void* operator new(std::size_t size, std::align_val_t alignment); // replaceable, C++17, nodi… 50 void* operator new(std::size_t size, std::align_val_t alignment, 54 void operator delete(void* ptr, std::align_val_t alignment) noexcept; // replaceable, C++17 56 std::align_val_t alignment) noexcept; // replaceable, C++17 58 void operator delete(void* ptr, std:align_val_t alignment, 63 … std::align_val_t alignment) noexcept; // replaceable, C++17, nodiscard in C++2a 65 void* operator new[](std::size_t size, std::align_val_t alignment, 70 std::align_val_t alignment) noexcept; // replaceable, C++17 72 std::align_val_t alignment) noexcept; // replaceable, C++17 [all …]
|
/external/llvm-project/libcxx/include/ |
D | new | 35 enum class align_val_t : size_t {}; // C++17 53 void* operator new(std::size_t size, std::align_val_t alignment); // replaceable, C++17, nodi… 55 void* operator new(std::size_t size, std::align_val_t alignment, 59 void operator delete(void* ptr, std::align_val_t alignment) noexcept; // replaceable, C++17 61 std::align_val_t alignment) noexcept; // replaceable, C++17 63 void operator delete(void* ptr, std:align_val_t alignment, 68 … std::align_val_t alignment) noexcept; // replaceable, C++17, nodiscard in C++2a 70 void* operator new[](std::size_t size, std::align_val_t alignment, 75 std::align_val_t alignment) noexcept; // replaceable, C++17 77 std::align_val_t alignment) noexcept; // replaceable, C++17 [all …]
|
/external/scudo/standalone/ |
D | wrappers_cpp.cpp | 23 enum class align_val_t : size_t {}; enum 40 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align) { in operator new() 44 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align) { in operator new[]() 48 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align, in operator new() 53 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align, in operator new[]() 78 INTERFACE WEAK void operator delete(void *ptr, std::align_val_t align)NOEXCEPT { in operator delete() 83 std::align_val_t align) NOEXCEPT { in operator delete[]() 87 INTERFACE WEAK void operator delete(void *ptr, std::align_val_t align, in operator delete() 92 INTERFACE WEAK void operator delete[](void *ptr, std::align_val_t align, in operator delete[]() 98 std::align_val_t align)NOEXCEPT { in operator delete() [all …]
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | wrappers_cpp.cpp | 23 enum class align_val_t : size_t {}; enum 40 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align) { in operator new() 44 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align) { in operator new[]() 48 INTERFACE WEAK void *operator new(size_t size, std::align_val_t align, in operator new() 53 INTERFACE WEAK void *operator new[](size_t size, std::align_val_t align, in operator new[]() 78 INTERFACE WEAK void operator delete(void *ptr, std::align_val_t align)NOEXCEPT { in operator delete() 83 std::align_val_t align) NOEXCEPT { in operator delete[]() 87 INTERFACE WEAK void operator delete(void *ptr, std::align_val_t align, in operator delete() 92 INTERFACE WEAK void operator delete[](void *ptr, std::align_val_t align, in operator delete[]() 98 std::align_val_t align)NOEXCEPT { in operator delete() [all …]
|