blob: ba39257fcd50459b53a3b7e641015bafdd2eb526 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
Eli Friedmanaa5ab262012-02-23 23:47:16 +00002
3// Make sure pragma pack works inside ObjC methods. <rdar://problem/10893316>
4@interface X
5@end
6@implementation X
7- (void)Y {
8#pragma pack(push, 1)
9 struct x {
10 char a;
11 int b;
12 };
13#pragma pack(pop)
14 typedef char check_[sizeof (struct x) == 5 ? 1 : -1];
15}
16@end