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