[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / ms_struct.c
bloba5f9606daf39ff9c76e23361b722cf0a76eebfd4
1 // RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
3 #define ATTR __attribute__((__ms_struct__))
4 struct s1 {
5 int f32;
6 long long f64;
7 } ATTR s1;
9 // CHECK: %struct.s1 = type { i32, [4 x i8], i64 }
11 struct s2 {
12 int f32;
13 long long f64[4];
14 } ATTR s2;
16 // CHECK: %struct.s2 = type { i32, [4 x i8], [4 x i64] }
18 struct s3 {
19 int f32;
20 struct s1 s;
21 } ATTR s3;
23 // CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 }