[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / pragma-pack-2.c
blob1cd8fe34ae2093ff378800a88e13e00e2ea53843
1 // RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X32 %s
2 // CHECK-X32: %struct.s0 = type { i64, i64, i32, [12 x i32] }
3 // CHECK-X32: %struct.s1 = type { [15 x i32], %struct.s0 }
5 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s
6 // CHECK-X64: %struct.s0 = type <{ i64, i64, i32, [12 x i32] }>
7 // CHECK-X64: %struct.s1 = type { [15 x i32], %struct.s0 }
8 #pragma pack(4)
10 struct s0 {
11 long long a __attribute__((aligned(8)));
12 long long b __attribute__((aligned(8)));
13 unsigned int c __attribute__((aligned(8)));
14 int d[12];
15 } a;
17 struct s1 {
18 int a[15];
19 struct s0 b;
20 } b;