brintos

brintos / llvm-project-archived public Read only

0
0
Text · 942 B · 174f70a Raw
44 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s2// expected-no-diagnostics3// This program tests that if class implements the forwardInvocation method, then4// every method possible is implemented in the class and should not issue5// warning of the "Method definition not found" kind. */6 7@interface NSObject8@end9 10@interface NSInvocation11@end12 13@interface NSProxy14@end15 16@protocol MyProtocol17        -(void) doSomething;18@end19 20@interface DestinationClass : NSObject<MyProtocol>21        -(void) doSomething;22@end23 24@implementation DestinationClass25        -(void) doSomething26        {27        }28@end29 30@interface MyProxy : NSProxy<MyProtocol>31{32        DestinationClass        *mTarget;33}34        - (id) init;35        - (void)forwardInvocation:(NSInvocation *)anInvocation;36@end37 38@implementation MyProxy39        - (void)forwardInvocation:(NSInvocation *)anInvocation40        {41        }42	- (id) init { return 0; }43@end44