Skip to content

Commit e068c84

Browse files
committed
[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
1 parent f309939 commit e068c84

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// Fails for 32-bit builds on AIX.
10-
// UNSUPPORTED: LIBCXX-AIX-FIXME
11-
129
// type_traits
1310

1411
// alignment_of
@@ -54,8 +51,8 @@ int main(int, char**)
5451
// we should expect. In most cases it should be 8. But in i386 builds
5552
// with Clang >= 8 or GCC >= 8 the value is '4'.
5653
test_alignment_of<double, TEST_ALIGNOF(double)>();
57-
#if (defined(__ppc__) && !defined(__ppc64__))
58-
test_alignment_of<bool, 4>(); // 32-bit PPC has four byte bool
54+
#if (defined(__ppc__) && !defined(__ppc64__) && !defined(_AIX))
55+
test_alignment_of<bool, 4>(); // 32-bit PPC has four byte bool, except on AIX.
5956
#else
6057
test_alignment_of<bool, 1>();
6158
#endif

0 commit comments

Comments
 (0)