aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/return-noreturn.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/return-noreturn.c')
-rw-r--r--test/Sema/return-noreturn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/return-noreturn.c b/test/Sema/return-noreturn.c
index ff43754a4299..448fce77cd85 100644
--- a/test/Sema/return-noreturn.c
+++ b/test/Sema/return-noreturn.c
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks -Wmissing-noreturn -Wno-unreachable-code
int j;
-void test1() { // expected-warning {{function could be attribute 'noreturn'}}
- ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}}
+void test1() { // expected-warning {{function 'test1' could be declared with attribute 'noreturn'}}
+ ^ (void) { while (1) { } }(); // expected-warning {{block could be declared with attribute 'noreturn'}}
^ (void) { if (j) while (1) { } }();
while (1) { }
}