1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify 3*f4a2713aSLionel Sambuc // expected-no-diagnostics 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc // rdar://problem/7095436 6*f4a2713aSLionel Sambuc #pragma pack(4) 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc struct s0 { 9*f4a2713aSLionel Sambuc long long a __attribute__((aligned(8))); 10*f4a2713aSLionel Sambuc long long b __attribute__((aligned(8))); 11*f4a2713aSLionel Sambuc unsigned int c __attribute__((aligned(8))); 12*f4a2713aSLionel Sambuc int d[12]; 13*f4a2713aSLionel Sambuc }; 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc struct s1 { 16*f4a2713aSLionel Sambuc int a[15]; 17*f4a2713aSLionel Sambuc struct s0 b; 18*f4a2713aSLionel Sambuc }; 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1]; 21