Lines Matching full:unavailable
6 // expected-note{{'foo' has been explicitly marked unavailable here}}
8 void bar(...) __attribute__((__unavailable__)); // expected-note 2{{explicitly marked unavailable}}
13 foo(sp); // expected-error{{call to unavailable function 'foo'}}
15 void (*fp)(...) = &bar; // expected-error{{'bar' is unavailable}}
16 void (*fp2)(...) = bar; // expected-error{{'bar' is unavailable}}
19 void (*fp4)(...) = foo; // expected-error{{'foo' is unavailable}}
24 #define FOO __attribute__((unavailable("not available - replaced")))
26 void foo() FOO; // expected-note {{candidate function has been explicitly made unavailable}}
28 foo(); // expected-error {{call to unavailable function 'foo': not available - replaced}}
34 // No complains inside an unavailable function.
41 // Show that delayed processing of 'unavailable' is the same
52 enum UnavailableEnum { UE_A, UE_B } __attribute__((unavailable)); // expected-note {{'UnavailableEnum' has been explicitly marked unavailable here}}
53 __attribute__((unavailable)) typedef enum UnavailableEnum UnavailableEnum;
54 typedef enum UnavailableEnum AnotherUnavailableEnum; // expected-error {{'UnavailableEnum' is unavailable}}
57 __attribute__((unavailable))