1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X32 %s 2f4a2713aSLionel Sambuc // CHECK-X32: %struct.s0 = type { i64, i64, i32, [12 x i32] } 3f4a2713aSLionel Sambuc // CHECK-X32: %struct.s1 = type { [15 x i32], %struct.s0 } 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s 6f4a2713aSLionel Sambuc // CHECK-X64: %struct.s0 = type <{ i64, i64, i32, [12 x i32] }> 7*0a6a1f1dSLionel Sambuc // CHECK-X64: %struct.s1 = type { [15 x i32], %struct.s0 } 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc // rdar://problem/7095436 10f4a2713aSLionel Sambuc #pragma pack(4) 11f4a2713aSLionel Sambuc 12f4a2713aSLionel Sambuc struct s0 { 13f4a2713aSLionel Sambuc long long a __attribute__((aligned(8))); 14f4a2713aSLionel Sambuc long long b __attribute__((aligned(8))); 15f4a2713aSLionel Sambuc unsigned int c __attribute__((aligned(8))); 16f4a2713aSLionel Sambuc int d[12]; 17f4a2713aSLionel Sambuc } a; 18f4a2713aSLionel Sambuc 19f4a2713aSLionel Sambuc struct s1 { 20f4a2713aSLionel Sambuc int a[15]; 21f4a2713aSLionel Sambuc struct s0 b; 22f4a2713aSLionel Sambuc } b; 23