Douglas Gregor | 6f75550 | 2011-02-01 15:15:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin10 -mms-bitfields -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | struct s1 { | ||||
4 | int f32; | ||||
5 | long long f64; | ||||
6 | } s1; | ||||
7 | |||||
8 | // CHECK: %struct.s1 = type { i32, [4 x i8], i64 } | ||||
9 | |||||
10 | struct 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 | |||||
17 | struct s3 { | ||||
18 | int f32; | ||||
19 | struct s1 s; | ||||
20 | } s3; | ||||
21 | |||||
22 | // CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 } |