2011-10-14 14:48:06 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-pch -o %t
|
2011-10-14 16:02:31 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-pch -o %t -D IMPL
|
2011-10-14 14:48:06 +08:00
|
|
|
|
|
|
|
// Avoid infinite loop because of method redeclarations.
|
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
-(void)meth;
|
|
|
|
-(void)meth;
|
|
|
|
-(void)meth;
|
|
|
|
@end
|
|
|
|
|
2011-10-14 16:02:31 +08:00
|
|
|
#ifdef IMPL
|
|
|
|
|
2011-10-14 14:48:06 +08:00
|
|
|
@implementation Foo
|
|
|
|
-(void)meth { }
|
|
|
|
@end
|
2011-10-14 16:02:31 +08:00
|
|
|
|
|
|
|
#endif
|