| // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s |
| // expected-no-diagnostics |
| // This program tests that if class implements the forwardInvocation method, then |
| // every method possible is implemented in the class and should not issue |
| // warning of the "Method definition not found" kind. */ |
| @interface DestinationClass : NSObject<MyProtocol> |
| @implementation DestinationClass |
| @interface MyProxy : NSProxy<MyProtocol> |
| DestinationClass *mTarget; |
| - (void)forwardInvocation:(NSInvocation *)anInvocation; |
| - (void)forwardInvocation:(NSInvocation *)anInvocation |
| - (id) init { return 0; } |