xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/method-redecls.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t -D IMPL
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc// Avoid infinite loop because of method redeclarations.
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface Foo
7*f4a2713aSLionel Sambuc-(void)meth;
8*f4a2713aSLionel Sambuc-(void)meth;
9*f4a2713aSLionel Sambuc-(void)meth;
10*f4a2713aSLionel Sambuc@end
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc#ifdef IMPL
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc@implementation Foo
15*f4a2713aSLionel Sambuc-(void)meth { }
16*f4a2713aSLionel Sambuc@end
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambuc#endif
19