[libc++][AIX] Alignment of bool on AIX is 1

Update test so that we check for a 1 byte alignment on AIX PPC32.

Differential Revision: https://reviews.llvm.org/D112087
This commit is contained in:
Sean Fertile 2021-11-10 12:58:15 -05:00
parent f309939d06
commit e068c84762
1 changed files with 2 additions and 5 deletions

View File

@ -6,9 +6,6 @@
//
//===----------------------------------------------------------------------===//
// Fails for 32-bit builds on AIX.
// UNSUPPORTED: LIBCXX-AIX-FIXME
// type_traits
// alignment_of
@ -54,8 +51,8 @@ int main(int, char**)
// we should expect. In most cases it should be 8. But in i386 builds
// with Clang >= 8 or GCC >= 8 the value is '4'.
test_alignment_of<double, TEST_ALIGNOF(double)>();
#if (defined(__ppc__) && !defined(__ppc64__))
test_alignment_of<bool, 4>(); // 32-bit PPC has four byte bool
#if (defined(__ppc__) && !defined(__ppc64__) && !defined(_AIX))
test_alignment_of<bool, 4>(); // 32-bit PPC has four byte bool, except on AIX.
#else
test_alignment_of<bool, 1>();
#endif