1 // RUN: %clang_cc1 -fsyntax-only -Wdeprecated-implementations -verify %s
5 - (void) D __attribute__((deprecated)); // expected-note {{method declared here}}
9 + (void)F __attribute__((deprecated)); // expected-note {{method declared here}}
13 - (void) E __attribute__((deprecated)); // expected-note {{method declared here}}
17 + (void)F { } // expected-warning {{Implementing deprecated method}}
18 - (void) D {} // expected-warning {{Implementing deprecated method}}
19 - (void) E {} // expected-warning {{Implementing deprecated method}}
22 __attribute__((deprecated))
23 @interface CL // expected-note 2 {{class declared here}}
26 @implementation CL // expected-warning {{Implementing deprecated class}}
29 @implementation CL ( SomeCategory ) // expected-warning {{Implementing deprecated category}}
32 @interface CL_SUB : CL // expected-warning {{'CL' is deprecated}}
36 - (void) B __attribute__((deprecated)); // expected-note {{method declared here}}
43 - (void) B {} // expected-warning {{Implementing deprecated method}}