blob: 6a09e14d88cfa426fc7b7599cd3c48920cd85b15 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify
2// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00003// expected-no-diagnostics
Anders Carlsson87b5fa92009-08-08 19:43:14 +00004
5// rdar://problem/7095436
6#pragma pack(4)
7
8struct 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
15struct s1 {
16 int a[15];
17 struct s0 b;
18};
19
20int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1];