blob: 8ffbd4bdef0a3c237b0b614ea97b87758cdc2fa9 [file] [log] [blame]
/* APPLE LOCAL file 4568791 */
/* Test that ity is OK (no warning) when Derived class does not implement
the method in protocol as long as its super class does. */
/* { dg-do compile } */
@protocol P
- (void)m;
@end
__attribute__((objc_root_class)) @interface Base
- (void)m;
@end
@interface Derived : Base <P>
@end
@implementation Base
- (void)m {
return;
}
@end
@implementation Derived
@end