mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 06:26:07 +00:00
[libc++][z/OS] Fix shared_ptr control block test when aligned allocation is not available (#109693)
This PR fixes the shared_ptr control block layout test that was recently updated in #76756. When aligned allocation/deallocation is not available, part of the test doesn't work.
This commit is contained in:
parent
2469d7e361
commit
60b604a198
@ -195,10 +195,12 @@ int main(int, char**) {
|
||||
test<TrivialEmptyType, FinalEmptyAlloc>();
|
||||
test<TrivialEmptyType, NonTrivialAlloc>();
|
||||
|
||||
#if !defined(TEST_HAS_NO_ALIGNED_ALLOCATION)
|
||||
test<OveralignedEmptyType, TrivialEmptyAlloc>();
|
||||
test<OveralignedEmptyType, TrivialNonEmptyAlloc>();
|
||||
test<OveralignedEmptyType, FinalEmptyAlloc>();
|
||||
test<OveralignedEmptyType, NonTrivialAlloc>();
|
||||
#endif
|
||||
|
||||
test<TrivialNonEmptyType, TrivialEmptyAlloc>();
|
||||
test<TrivialNonEmptyType, TrivialNonEmptyAlloc>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user