1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
2 /* { dg-do compile } */
10 + (int) deprecatedClassMethod: (id)firstObject, ... __attribute__((sentinel)) __attribute__((deprecated));
11 - (int) deprecatedInstanceMethod: (id)firstobject, ... __attribute__((sentinel)) __attribute__((deprecated));
14 /* Test that deprecation warnings are produced even if the method is
15 also marked with another attribute too (this is to test the
16 processing of multiple attributes). */
19 MyClass *object = nil;
21 [MyClass deprecatedClassMethod: object, nil]; /* { dg-warning "is deprecated" } */
22 [object deprecatedInstanceMethod: object, nil]; /* { dg-warning "is deprecated" } */