[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:
Zibi Sarbinowski 2024-10-01 09:57:46 -04:00 committed by GitHub
parent 2469d7e361
commit 60b604a198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>();