1/* { dg-do compile } */ 2 3#include <objc/objc.h> 4 5__attribute__ ((deprecated)) 6@interface DeprecatedClass 7{ 8 Class isa; 9} 10+ (id) new; 11@end 12 13__attribute__ ((deprecated)) 14@implementation DeprecatedClass /* { dg-warning "prefix attributes are ignored" } */ 15+ (id) new { return nil; } 16@end 17 18void function (void) 19{ 20 DeprecatedClass *object = [DeprecatedClass new]; /* { dg-warning "is deprecated" } */ 21} 22