| // RUN: %clang_cc1 -triple i386-apple-darwin10 -mms-bitfields -emit-llvm %s -o - | FileCheck %s |
| // CHECK: %struct.s1 = type { i32, [4 x i8], i64 } |
| // CHECK: %struct.s2 = type { i32, [4 x i8], [4 x i64] } |
| // CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 } |
| typedef unsigned int UINT32; |
| // CHECK: %struct.Inner = type { i32, i32 } |
| // CHECK: %struct.A = type { i32, i32, i32 } |
| int b : 17; // Bits 40:24 |
| struct Inner variable = { 1,0,1, 21 }; |
| union HEADER hdr = {{1,2,3,4}}; |
| // CHECK: @variable ={{.*}} global { i8, [3 x i8], i8, i8, i8, i8 } { i8 5, [3 x i8] undef, i8 21, i8 0, i8 0, i8 0 }, align 1 |
| // CHECK: @hdr ={{.*}} global { { i8, i8, [2 x i8], i8, i8, i8, i8, i8, [3 x i8] } } { { i8, i8, [2 x i8], i8, i8, i8, i8, i8, [3 x i8] } { i8 8, i8 0, [2 x i8] undef, i8 2, i8 0, i8 0, i8 3, i8 4, [3 x i8] undef } }, align 1 |