Skip to content

Commit 59621e7

Browse files
committed
Fix check strings
The diagnostic message changed after 7db7c0b.
1 parent d7a227c commit 59621e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Sema/feature-availability.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ void test7(void) {
247247
#ifdef USE_DOMAIN
248248
void 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
}

0 commit comments

Comments
 (0)