[libcxx-commits] [libcxx] e068c84 - [libc++][AIX] Alignment of bool on AIX is 1
Sean Fertile via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 10 10:02:58 PST 2021
Author: Sean Fertile
Date: 2021-11-10T13:01:32-05:00
New Revision: e068c84762ac1ec34631beb5f41cebfa78fcc3df
URL: https://github.com/llvm/llvm-project/commit/e068c84762ac1ec34631beb5f41cebfa78fcc3df
DIFF: https://github.com/llvm/llvm-project/commit/e068c84762ac1ec34631beb5f41cebfa78fcc3df.diff
LOG: [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
Added:
Modified:
libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
index 63db26e543100..9f93e1f8b4ef9 100644
--- a/libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
+++ b/libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
@@ -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
More information about the libcxx-commits
mailing list