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