1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
13 + (int) deprecatedClassMethod __attribute__((deprecated));
14 - (int) deprecatedInstanceMethod __attribute__((deprecated));
17 /* Test that deprecation warnings are produced, but not if the
18 receiver is of type 'id'. */
23 MyClass *another_object;
27 [c deprecatedClassMethod];
28 [object deprecatedInstanceMethod];
31 [another_object method];
32 [MyClass deprecatedClassMethod]; /* { dg-warning "is deprecated" } */
33 [another_object deprecatedInstanceMethod]; /* { dg-warning "is deprecated" } */