| // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify |
| // expected-no-diagnostics |
| extern int a0[offsetof(struct s0, f1) == 4 ? 1 : -1]; |
| extern int a1[offsetof(struct s1, f1) == 2 ? 1 : -1]; |
| extern int a3_0[offsetof(struct s3_0, f1) == 1 ? 1 : -1]; |
| extern int a3_1[offsetof(struct s3_1, f1) == 4 ? 1 : -1]; |
| // pack(0) is like pack() |
| extern int a4_0[offsetof(struct s4_0, f1) == 1 ? 1 : -1]; |
| extern int a4_1[offsetof(struct s4_1, f1) == 4 ? 1 : -1]; |
| extern int s5_0[offsetof(struct s5_0, f1) == 2 ? 1 : -1]; |