[libcxx-commits] [PATCH] D112087: [libc++][AIX] Alignment of bool on AIX is 1
Sean Fertile via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 19 11:06:54 PDT 2021
sfertile created this revision.
sfertile added reviewers: ldionne, daltenty.
sfertile requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.
Update test so that we check for a 1 byte alignment on AIX PPC32.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112087
Files:
libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
Index: libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
===================================================================
--- libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
+++ libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
@@ -51,8 +51,8 @@
// 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112087.380734.patch
Type: text/x-patch
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211019/5b080d2a/attachment.bin>
More information about the libcxx-commits
mailing list