Home
last modified time | relevance | path

Searched refs:max_align_t (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project/libcxx/test/std/language.support/support.types/
H A Dmax_align_t.compile.pass.cpp19 static_assert(std::is_trivial<std::max_align_t>::value, "");
20 static_assert(std::is_standard_layout<std::max_align_t>::value, "");
22 static_assert(std::is_pod<std::max_align_t>::value, "");
24 static_assert(alignof(std::max_align_t) >= alignof(long long), "");
25 static_assert(alignof(std::max_align_t) >= alignof(long double), "");
26 static_assert(alignof(std::max_align_t) >= alignof(void*), "");
28 static_assert(alignof(std::max_align_t) <= __STDCPP_DEFAULT_NEW_ALIGNMENT__,
H A Dcstddef.compile.pass.cpp32 using MaxAlignT = std::max_align_t;
/llvm-project/libcxx/test/std/depr/depr.c.headers/
H A Dstddef_h.compile.pass.cpp22 (void)sizeof(max_align_t); in use()
47 static_assert(std::is_trivial<max_align_t>::value, "");
48 static_assert(std::is_standard_layout<max_align_t>::value, "");
50 static_assert(std::is_pod<max_align_t>::value, "");
52 static_assert(std::alignment_of<max_align_t>::value >= std::alignment_of<long long>::value, "");
53 static_assert(std::alignment_of<max_align_t>::value >= std::alignment_of<long double>::value, "");
54 static_assert(std::alignment_of<max_align_t>::value >= std::alignment_of<void*>::value, "");
/llvm-project/clang/test/Headers/
H A Dstddefneeds.cpp7 max_align_t m0; // expected-error{{unknown}}
16 max_align_t m1; // expected-error{{unknown}}
25 max_align_t m2; // expected-error{{unknown}}
34 max_align_t m3; // expected-error{{unknown}}
43 max_align_t m4;
52 max_align_t m5;
H A Dc11.c27 _Static_assert(sizeof(max_align_t) >= sizeof(long long), "");
28 _Static_assert(alignof(max_align_t) >= alignof(long long), "");
29 _Static_assert(sizeof(max_align_t) >= sizeof(long double), "");
30 _Static_assert(alignof(max_align_t) >= alignof(long double), "");
33 _Static_assert(sizeof(max_align_t) == sizeof(double), "");
H A Dstddefneeds.c25 max_align_t m0; // c99-error{{unknown type name 'max_align_t'}} c23-error{{unknown type}} \
54 max_align_t m1; // c99-error{{unknown type}} c23-error{{unknown type}} \
85 max_align_t m2; // c99-error{{unknown type}} c23-error{{unknown type}}
106 max_align_t m3; // c99-error{{unknown type}} c23-error{{unknown type}}
127 max_align_t m4; // c99-error{{unknown type}} c23-error{{unknown type}}
147 max_align_t m5; // c99-error{{unknown type}} c23-error{{unknown type}}
168 max_align_t m6; // c99-error{{unknown type}} c23-error{{unknown type}}
186 max_align_t m7; // c99-error{{unknown type}} c23-error{{unknown type}}
204 max_align_t m8;
222 max_align_t m9;
[all …]
H A Dstddef.c25 max_align_t m0; // c99-error{{unknown type name 'max_align_t'}} c11-error{{unknown type}} c23-error…
50 max_align_t m1; // c99-error{{unknown type}} c99-modules-error{{'max_align_t' must be declared befo…
68 max_align_t m2; // c99-error{{unknown type}}
/llvm-project/clang/lib/Headers/
H A D__stddef_max_align_t.h14 typedef double max_align_t; typedef
16 typedef long double max_align_t; typedef
24 } max_align_t; typedef
/llvm-project/libcxx/test/std/containers/sequences/array/
H A Dsize_and_alignment.compile.pass.cpp107 struct alignas(TEST_ALIGNOF(std::max_align_t) * 2) Overaligned1 {};
109 struct alignas(TEST_ALIGNOF(std::max_align_t) * 2) Overaligned2 {
113 struct alignas(TEST_ALIGNOF(std::max_align_t)) Overaligned3 {
141 test_type<std::max_align_t>(); in test()
/llvm-project/libcxx/test/std/language.support/support.dynamic/new.delete/
H A Dtypes.h43 struct alignas(std::max_align_t) TrackLifetimeMaxAligned {
58 struct alignas(std::max_align_t) MaxAligned {
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/
H A Dallocate_deallocate_bytes.pass.cpp41 assert(last_alignment == alignof(std::max_align_t)); in test()
44 assert(last_alignment == alignof(std::max_align_t)); in test()
H A Ddeallocate.pass.cpp55 constexpr std::size_t MA = alignof(std::max_align_t); in main()
/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
H A Dtypes.h70 struct alignas(alignof(std::max_align_t) * 2) OverAligned { };
73 std::max_align_t foo;
/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h187 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in AllocateSlow()
347 alignof(std::max_align_t)); in StartNewSlab()
364 alignof(std::max_align_t)); in DeallocateSlabs()
373 this->getAllocator().Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs()
458 alignof(std::max_align_t)));
/llvm-project/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Daligned_storage.pass.cpp277 const std::size_t alignment = TEST_ALIGNOF(std::max_align_t) > 16 ? in main()
278 16 : TEST_ALIGNOF(std::max_align_t); in main()
295 const std::size_t alignment = TEST_ALIGNOF(std::max_align_t) > 16 ? in main()
296 16 : TEST_ALIGNOF(std::max_align_t); in main()
/llvm-project/libcxx/test/libcxx/language.support/support.types/
H A Dcstddef.compile.pass.cpp19 using MaxAlignT = ::max_align_t;
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/
H A Dallocate_overaligned_request.pass.cpp29 constexpr std::size_t big_alignment = 8 * alignof(std::max_align_t); in main()
/llvm-project/libcxx/include/
H A Dcstddef28 max_align_t // C++11
57 # include <__cstddef/max_align_t.h>
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.res/mem.res.public/
H A Ddeallocate.pass.cpp56 a = alignof(std::max_align_t); in main()
/llvm-project/libcxx/modules/std.compat/
H A Dcstddef.inc11 using ::max_align_t _LIBCPP_USING_IF_EXISTS;
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.res.pool/mem.res.pool.mem/
H A Dunsync_allocate_overaligned_request.pass.cpp38 constexpr std::size_t big_alignment = 8 * alignof(std::max_align_t); in main()
H A Dsync_allocate_overaligned_request.pass.cpp38 constexpr std::size_t big_alignment = 8 * alignof(std::max_align_t); in main()
/llvm-project/libcxx/modules/std/
H A Dcstddef.inc11 using std::max_align_t _LIBCPP_USING_IF_EXISTS;
/llvm-project/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/
H A Ddelete_align_val_t_replace.pass.cpp62 struct alignas(std::max_align_t) B {};
/llvm-project/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
H A Ddelete_align_val_t_replace.pass.cpp62 struct alignas(std::max_align_t) B {};

12