blob: 1617e8ac40d9200c66ba0a71e6966d83a9c8702f [file] [log] [blame]
Douglas Gregor6f755502011-02-01 15:15:22 +00001// RUN: %clang_cc1 -triple i386-apple-darwin10 -mms-bitfields -emit-llvm %s -o - | FileCheck %s
2
3struct s1 {
4 int f32;
5 long long f64;
6} s1;
7
8// CHECK: %struct.s1 = type { i32, [4 x i8], i64 }
9
10struct s2 {
11 int f32;
12 long long f64[4];
13} s2;
14
15// CHECK: %struct.s2 = type { i32, [4 x i8], [4 x i64] }
16
17struct s3 {
18 int f32;
19 struct s1 s;
20} s3;
21
22// CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 }