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 |
3 | // expected-no-diagnostics |
4 | |
5 | // rdar://problem/7095436 |
6 | #pragma pack(4) |
7 | |
8 | struct s0 { |
9 | long long a __attribute__((aligned(8))); |
10 | long long b __attribute__((aligned(8))); |
11 | unsigned int c __attribute__((aligned(8))); |
12 | int d[12]; |
13 | }; |
14 | |
15 | struct s1 { |
16 | int a[15]; |
17 | struct s0 b; |
18 | }; |
19 | |
20 | int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1]; |
21 |