1 // off-no-diagnostics
2 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -verify -fsyntax-only %s
3 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -verify -fsyntax-only %s
4 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -verify=off -Wno-aix-compat -fsyntax-only %s
5 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -verify=off -Wno-aix-compat -fsyntax-only %s
6 // RUN: %clang_cc1 -triple powerpc64le-unknown-linux -verify=off -fsyntax-only %s
7 
8 struct S {
9   int a[8] __attribute__((aligned(8))); // no-warning
10 };
11 
12 struct T {
13   int a[4] __attribute__((aligned(16))); // expected-warning {{requesting an alignment of 16 bytes or greater for struct members is not binary compatible with AIX XL 16.1 and older}}
14 };
15 
16 struct U {
17   int a[2] __attribute__((aligned(32))); // expected-warning {{requesting an alignment of 16 bytes or greater for struct members is not binary compatible with AIX XL 16.1 and older}}
18 };
19 
20 int a[8] __attribute__((aligned(8)));  // no-warning
21 int b[4] __attribute__((aligned(16))); // no-warning
22 int c[2] __attribute__((aligned(32))); // no-warning
23