Lines Matching refs:unavailable
4 int foo(int) __attribute__((__unavailable__("USE IFOO INSTEAD"))); // expected-note {{function has been explicitly marked unavailable here}}
5 double dfoo(double) __attribute__((__unavailable__("NO LONGER"))); // expected-note 2 {{function has been explicitly marked unavailable here}}
7 void bar() __attribute__((__unavailable__)); // expected-note {{explicitly marked unavailable}}
10 int ir = foo(1); // expected-error {{'foo' is unavailable: USE IFOO INSTEAD}}
11 double dr = dfoo(1.0); // expected-error {{'dfoo' is unavailable: NO LONGER}}
13 void (*fp)() = &bar; // expected-error {{'bar' is unavailable}}
15 double (*fp4)(double) = dfoo; // expected-error {{'dfoo' is unavailable: NO LONGER}}
23 // No complains inside an unavailable function.
37 enum fee { // expected-note {{declaration has been explicitly marked unavailable here}}
38 r = 1, // expected-note {{declaration has been explicitly marked unavailable here}}
41 }__attribute__((unavailable()));
43 enum fee f() { // expected-error {{'fee' is unavailable}}
48 return r; // expected-error {{'r' is unavailable}}