1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
2 /* { dg-do compile } */
6 /* Test that __attribute__ ((__deprecated__)) works as well as __attribute__ ((deprecated)). */
11 + (int) deprecatedClassMethod: (id)firstObject, ... __attribute__((__deprecated__));
12 - (int) deprecatedInstanceMethod: (id)firstobject, ... __attribute__((__deprecated__));
17 MyClass *object = nil;
19 [MyClass deprecatedClassMethod: object, nil]; /* { dg-warning "is deprecated" } */
20 [object deprecatedInstanceMethod: object, nil]; /* { dg-warning "is deprecated" } */