xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/mms-bitfields.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-apple-darwin10 -mms-bitfields -emit-llvm %s -o - | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc struct s1 {
4*f4a2713aSLionel Sambuc   int       f32;
5*f4a2713aSLionel Sambuc   long long f64;
6*f4a2713aSLionel Sambuc } s1;
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // CHECK: %struct.s1 = type { i32, [4 x i8], i64 }
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc struct s2 {
11*f4a2713aSLionel Sambuc   int       f32;
12*f4a2713aSLionel Sambuc   long long f64[4];
13*f4a2713aSLionel Sambuc } s2;
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc // CHECK: %struct.s2 = type { i32, [4 x i8], [4 x i64] }
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc struct s3 {
18*f4a2713aSLionel Sambuc   int       f32;
19*f4a2713aSLionel Sambuc   struct s1 s;
20*f4a2713aSLionel Sambuc } s3;
21*f4a2713aSLionel Sambuc 
22*f4a2713aSLionel Sambuc // CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 }
23