1 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 - (void) unavailMeth __attribute__((unavailable)); // expected-note {{function has been explicitly marked unavailable here}}
7 - (void) depInA1 __attribute__((deprecated));
9 - (void) depInA2 __attribute__((deprecated));
10 - (void) unavailMeth2 __attribute__((unavailable)); // expected-note {{function has been explicitly marked unavailable here}}
11 - (void) depunavailInA;
12 - (void) depunavailInA1 __attribute__((deprecated)) __attribute__((unavailable)); // expected-note {{function has been explicitly marked unavailable here}}
13 - (void)FuzzyMeth __attribute__((deprecated));
14 - (void)FuzzyMeth1 __attribute__((unavailable));
18 - (void) unavailMeth1 __attribute__((unavailable)); // expected-note {{function has been explicitly marked unavailable here}}
19 - (void) depInA __attribute__((deprecated));
20 - (void) depInA2 __attribute__((deprecated));
22 - (void) unavailMeth2 __attribute__((unavailable));
23 - (void) depunavailInA __attribute__((deprecated)) __attribute__((unavailable)); // expected-note {{function has been explicitly marked unavailable here}}
24 - (void) depunavailInA1;
25 - (void)FuzzyMeth __attribute__((unavailable));
26 - (void)FuzzyMeth1 __attribute__((deprecated));
33 [c depInA]; // expected-warning {{'depInA' maybe deprecated because receiver type is unknown}}
34 [c unavailMeth]; // expected-warning {{'unavailMeth' maybe unavailable because receiver type is unknown}}
35 [c depInA1]; // expected-warning {{'depInA1' maybe deprecated because receiver type is unknown}}
36 [c unavailMeth1]; // expected-warning {{'unavailMeth1' maybe unavailable because receiver type is unknown}}
37 [c depInA2]; // expected-warning {{'depInA2' maybe deprecated because receiver type is unknown}}
38 [c unavailMeth2]; // expected-warning {{'unavailMeth2' maybe unavailable because receiver type is unknown}}
39 [c depunavailInA]; // expected-warning {{'depunavailInA' maybe deprecated because receiver type is unknown}} \
40 // expected-warning {{'depunavailInA' maybe unavailable because receiver type is unknown}}
41 [c depunavailInA1]; // expected-warning {{'depunavailInA1' maybe deprecated because receiver type is unknown}} \
42 // expected-warning {{'depunavailInA1' maybe unavailable because receiver type is unknown}}
43 [c FuzzyMeth]; // expected-warning {{'FuzzyMeth' maybe deprecated because receiver type is unknown}}
44 [c FuzzyMeth1]; // expected-warning {{'FuzzyMeth1' maybe deprecated because receiver type is unknown}}