blob: dd6e3ad4aa32d3b9dfd9f806e286291e2601b22f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s
Fariborz Jahaniancd187622009-05-22 17:12:32 +00002// 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