Home
last modified time | relevance | path

Searched refs:AlignedType (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/language.support/support.dynamic/
H A Dlibcpp_deallocate.sh.cpp179 struct TEST_ALIGNAS(128) AlignedType { struct
180 AlignedType() : elem(0) {} in AlignedType() function
194 AlignedType* a = new AlignedType(); in test_allocator_and_new_match()
210 AlignedType* a = new AlignedType(); in test_allocator_and_new_match()
212 assert(stats.expect_align(TEST_ALIGNOF(AlignedType))); in test_allocator_and_new_match()
224 AlignedType* a = new AlignedType(); in test_allocator_and_new_match()
226 assert(stats.expect_size(sizeof(AlignedType))); in test_allocator_and_new_match()
238 AlignedType* a = new AlignedType(); in test_allocator_and_new_match()
240 assert(stats.expect_size_align(sizeof(AlignedType), in test_allocator_and_new_match()
241 TEST_ALIGNOF(AlignedType))); in test_allocator_and_new_match()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/default.allocator/allocator.members/
H A Dallocate.pass.cpp38 struct TEST_ALIGNAS(Align) AlignedType { in TEST_ALIGNAS()
41 AlignedType() { ++constructed; } in TEST_ALIGNAS()
42 AlignedType(AlignedType const&) { ++constructed; } in TEST_ALIGNAS()
43 ~AlignedType() { --constructed; } in TEST_ALIGNAS()
46 int AlignedType<Align>::constructed = 0;
51 typedef AlignedType<Align> T; in test_aligned()
83 typedef AlignedType<Align> T; in test_aligned_constexpr()
H A Dallocate_at_least.pass.cpp36 struct alignas(Align) AlignedType { struct
39 AlignedType() { ++constructed; } in AlignedType() argument
40 AlignedType(AlignedType const&) { ++constructed; } in AlignedType() argument
41 ~AlignedType() { --constructed; } in ~AlignedType() argument
44 int AlignedType<Align>::constructed = 0;
49 typedef AlignedType<Align> T; in test_aligned()
81 typedef AlignedType<Align> T; in test_aligned_constexpr()
/llvm-project-15.0.7/libcxx/test/libcxx/depr/depr.default.allocator/allocator.members/
H A Dallocate.cxx2a.pass.cpp41 struct TEST_ALIGNAS(Align) AlignedType { in TEST_ALIGNAS()
44 AlignedType() { ++constructed; } in TEST_ALIGNAS()
45 AlignedType(AlignedType const&) { ++constructed; } in TEST_ALIGNAS()
46 ~AlignedType() { --constructed; } in TEST_ALIGNAS()
49 int AlignedType<Align>::constructed = 0;
54 typedef AlignedType<Align> T; in test_aligned()
/llvm-project-15.0.7/libcxxabi/test/
H A Dtest_exception_address_alignment.pass.cpp27 struct __attribute__((aligned)) AlignedType {}; struct
34 # define EXPECTED_ALIGNMENT alignof(AlignedType)