| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify | 
|  | 2 | // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify | 
| Anders Carlsson | e139f86 | 2009-08-08 19:43:14 +0000 | [diff] [blame] | 3 |  | 
|  | 4 | // rdar://problem/7095436 | 
|  | 5 | #pragma pack(4) | 
|  | 6 |  | 
|  | 7 | struct s0 { | 
|  | 8 | long long a __attribute__((aligned(8))); | 
|  | 9 | long long b __attribute__((aligned(8))); | 
|  | 10 | unsigned int c __attribute__((aligned(8))); | 
|  | 11 | int d[12]; | 
|  | 12 | }; | 
|  | 13 |  | 
|  | 14 | struct s1 { | 
|  | 15 | int a[15]; | 
|  | 16 | struct s0 b; | 
|  | 17 | }; | 
|  | 18 |  | 
|  | 19 | int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1]; |