Xiangling_L created this revision. Xiangling_L added reviewers: hubert.reinterpretcast, sfertile, jasonliu, daltenty. Xiangling_L requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D102715 Files: clang/test/Sema/struct-packed-align.c Index: clang/test/Sema/struct-packed-align.c =================================================================== --- clang/test/Sema/struct-packed-align.c +++ clang/test/Sema/struct-packed-align.c @@ -167,6 +167,9 @@ // must maintain ABI backwards compatibility. extern int o1[sizeof(struct packed_chars) == 3 ? 1 : -1]; extern int o2[__alignof(struct packed_chars) == 1 ? 1 : -1]; +#elif defined(_AIX) +extern int o1[sizeof(struct packed_chars) == 4 ? 1 : -1]; +extern int o2[__alignof(struct packed_chars) == 4 ? 1 : -1]; #else extern int o1[sizeof(struct packed_chars) == 2 ? 1 : -1]; extern int o2[__alignof(struct packed_chars) == 1 ? 1 : -1];
Index: clang/test/Sema/struct-packed-align.c =================================================================== --- clang/test/Sema/struct-packed-align.c +++ clang/test/Sema/struct-packed-align.c @@ -167,6 +167,9 @@ // must maintain ABI backwards compatibility. extern int o1[sizeof(struct packed_chars) == 3 ? 1 : -1]; extern int o2[__alignof(struct packed_chars) == 1 ? 1 : -1]; +#elif defined(_AIX) +extern int o1[sizeof(struct packed_chars) == 4 ? 1 : -1]; +extern int o2[__alignof(struct packed_chars) == 4 ? 1 : -1]; #else extern int o1[sizeof(struct packed_chars) == 2 ? 1 : -1]; extern int o2[__alignof(struct packed_chars) == 1 ? 1 : -1];
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits