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) {
247247#ifdef USE_DOMAIN
248248void test8 (void ) {
249249 // 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 }}
252252
253253 if (__builtin_available (domain :feature5 )) {
254254 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 }}
256256 } 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 }}
258258 func22 ();
259259 }
260260}
You can’t perform that action at this time.
0 commit comments