1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
2 /* { dg-do compile } */
12 + (int) deprecatedClassMethod __attribute__((deprecated));
13 - (int) deprecatedInstanceMethod __attribute__((deprecated));
16 /* Test that deprecation warnings are produced, but not if the
17 receiver is of type 'id'. */
22 MyClass *another_object;
26 [c deprecatedClassMethod];
27 [object deprecatedInstanceMethod];
30 [another_object method];
31 [MyClass deprecatedClassMethod]; /* { dg-warning "is deprecated" } */
32 [another_object deprecatedInstanceMethod]; /* { dg-warning "is deprecated" } */