1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify -ffreestanding
2 // expected-no-diagnostics
3 // <rdar://problem/10494810> and PR9560
4 // Check #pragma pack handling with bitfields.
14 extern int check
[sizeof(struct s0
) == 6 ? 1 : -1];
21 extern int check
[sizeof(struct s1
) == 5 ? 1 : -1];
29 extern int check
[sizeof(struct s2
) == 6 ? 1 : -1];
37 extern int check
[sizeof(struct s3
) == 8 ? 1 : -1];
38 extern int check
[offsetof(struct s3
, f4
) == 6 ? 1 : -1];
45 extern int check
[sizeof(struct s4
) == 4 ? 1 : -1];
46 extern int check
[offsetof(struct s4
, f3
) == 2 ? 1 : -1];