blob: 2fcb06ff5e92d77a2ba6fb9a4ead1cb28ea7cdd6 [file] [log] [blame]
Fariborz Jahaniancd187622009-05-22 17:12:32 +00001// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only -verify %s
2// This program tests that if class implements the forwardInvocation method, then
3// every method possible is implemented in the class and should not issue
4// warning of the "Method definition not found" kind. */
5
6@interface NSObject
7@end
8
9@interface NSInvocation
10@end
11
12@interface NSProxy
13@end
14
15@protocol MyProtocol
16 -(void) doSomething;
17@end
18
19@interface DestinationClass : NSObject<MyProtocol>
20 -(void) doSomething;
21@end
22
23@implementation DestinationClass
24 -(void) doSomething
25 {
26 }
27@end
28
29@interface MyProxy : NSProxy<MyProtocol>
30{
31 DestinationClass *mTarget;
32}
33 - (id) init;
34 - (void)forwardInvocation:(NSInvocation *)anInvocation;
35@end
36
37@implementation MyProxy
38 - (void)forwardInvocation:(NSInvocation *)anInvocation
39 {
40 }
Mike Stumpd1969d82009-07-22 00:43:08 +000041 - (id) init { return 0; }
Fariborz Jahaniancd187622009-05-22 17:12:32 +000042@end