1 // RUN: %clang_cc1 -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. */
9 @interface NSInvocation
19 @interface DestinationClass : NSObject<MyProtocol>
23 @implementation DestinationClass
29 @interface MyProxy : NSProxy<MyProtocol>
31 DestinationClass *mTarget;
34 - (void)forwardInvocation:(NSInvocation *)anInvocation;
37 @implementation MyProxy
38 - (void)forwardInvocation:(NSInvocation *)anInvocation
41 - (id) init { return 0; }