blob: 663799a289efb15d341880b4a5ff0e19f0739323 [file] [log] [blame]
/* APPLE LOCAL file radar 4449535 */
/* This program tests that if class implements the forwardInvocation method, then
every method possible is implemented in the class and gcc should not issue
warning of the "Method definition not found" kind. */
/* { dg-do compile { target *-*-darwin* } } */
__attribute__((objc_root_class)) @interface NSObject
@end
__attribute__((objc_root_class)) @interface NSInvocation
@end
__attribute__((objc_root_class)) @interface NSProxy
@end
@protocol MyProtocol
-(void) doSomething;
@end
@interface DestinationClass : NSObject<MyProtocol>
-(void) doSomething;
@end
@implementation DestinationClass
-(void) doSomething
{
}
@end
@interface MyProxy : NSProxy<MyProtocol>
{
DestinationClass *mTarget;
}
- (id) init;
- (void)forwardInvocation:(NSInvocation *)anInvocation;
@end
@implementation MyProxy
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
}
- (id) init {}
@end