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