1/* { dg-do compile } */ 2 3#include <objc/objc.h> 4 5__attribute ((deprecated)) 6@protocol dep_proto 7- (int) depprotomth; 8@end 9 10@interface obj <dep_proto> /* { dg-warning "is deprecated" } */ 11{ 12@public 13 int var; 14} 15- (int) mth; 16@end 17 18@implementation obj 19- (int) mth { return var; } 20- (int) depprotomth { return var + 1; } 21@end 22