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,11 @@ // 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) +// On AIX, [bool, char, short] bitfields have the same alignment as unsigned +// int. +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];