[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / aix-pragma-align-packed-warn.c
blobacbca792e37a3fe121e955d25d5b53b62aabaaca
1 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -fxl-pragma-pack -verify -fsyntax-only %s
2 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -fxl-pragma-pack -verify -fsyntax-only %s
4 #pragma align(packed)
5 struct A { // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}
6 short s1;
7 int : 0;
8 short s2;
9 };
11 struct B { // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}
12 short a : 8;
13 short b : 8;
14 int c;
17 struct C {
18 int x, y, z;
21 struct D {
22 double d;
23 struct A a;
25 #pragma align(reset)
27 struct E {
28 int a : 28;
29 int : 0;
30 int b : 16;