1// RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
2
3#define ATTR __attribute__((__ms_struct__))
4struct s1 {
5  int       f32;
6  long long f64;
7} ATTR s1;
8
9// CHECK: %struct.s1 = type { i32, [4 x i8], i64 }
10
11struct s2 {
12  int       f32;
13  long long f64[4];
14} ATTR s2;
15
16// CHECK: %struct.s2 = type { i32, [4 x i8], [4 x i64] }
17
18struct s3 {
19  int       f32;
20  struct s1 s;
21} ATTR s3;
22
23// CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 }
24