Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
      2 
      3 #define ATTR __attribute__((__ms_struct__))
      4 struct s1 {
      5   int       f32;
      6   long long f64;
      7 } ATTR s1;
      8 
      9 // CHECK: %struct.s1 = type { i32, [4 x i8], i64 }
     10 
     11 struct 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 
     18 struct s3 {
     19   int       f32;
     20   struct s1 s;
     21 } ATTR s3;
     22 
     23 // CHECK: %struct.s3 = type { i32, [4 x i8], %struct.s1 }
     24