Lines Matching refs:__has_warning
2 #ifndef __has_warning
3 #error Should have __has_warning
6 #if __has_warning("not valid") // expected-warning {{__has_warning expected option name}}
10 #if __has_warning("-Wparentheses")
14 // expected-error@+2 {{expected string literal in '__has_warning'}}
16 #if __has_warning(-Wfoo)
20 #if __has_warning("-Wnot-a-valid-warning-flag-at-all")
25 // expected-error@+1 {{missing '(' after '__has_warning'}}
26 #if __has_warning "not valid"
29 // Macro expansion does not occur in the parameter to __has_warning
36 #if __has_warning(MY_ALIAS)
41 #define HAS_WARNING(X) __has_warning(X)