18 lines · plain
1// RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3 4// Make sure pragma pack works inside ObjC methods.5@interface X6@end7@implementation X8- (void)Y {9#pragma pack(push, 1)10 struct x {11 char a;12 int b;13 };14#pragma pack(pop)15 typedef char check_[sizeof (struct x) == 5 ? 1 : -1];16}17@end18