File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -247,14 +247,14 @@ void test7(void) {
247
247
#ifdef USE_DOMAIN
248
248
void test8 (void ) {
249
249
// FIXME: Use of 'func21()' should not be diagnosed because feature5 is always available.
250
- func21 (); // expected-error {{use of 'func21' requires feature 'feature5' to be available }}
251
- func22 (); // expected-error {{use of 'func22' requires feature 'feature5' to be unavailable }}
250
+ func21 (); // expected-error {{cannot use 'func21' because feature 'feature5' is unavailable in this context }}
251
+ func22 (); // expected-error {{cannot use 'func22' because feature 'feature5' is available in this context }}
252
252
253
253
if (__builtin_available (domain :feature5 )) {
254
254
func21 ();
255
- func22 (); // expected-error {{use of 'func22' requires feature 'feature5' to be unavailable }}
255
+ func22 (); // expected-error {{cannot use 'func22' because feature 'feature5' is available in this context }}
256
256
} else {
257
- func21 (); // expected-error {{use of 'func21' requires feature 'feature5' to be available }}
257
+ func21 (); // expected-error {{cannot use 'func21' because feature 'feature5' is unavailable in this context }}
258
258
func22 ();
259
259
}
260
260
}
You can’t perform that action at this time.
0 commit comments