summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/unreachable-code.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/unreachable-code.cpp')
-rw-r--r--clang/test/SemaCXX/unreachable-code.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/unreachable-code.cpp b/clang/test/SemaCXX/unreachable-code.cpp
index 5016c3f24be..fd006c099e7 100644
--- a/clang/test/SemaCXX/unreachable-code.cpp
+++ b/clang/test/SemaCXX/unreachable-code.cpp
@@ -5,7 +5,7 @@ int bar();
int test1() {
for (int i = 0;
i != 10;
- ++i) { // expected-warning {{will never be executed}}
+ ++i) { // expected-warning {{loop will run at most once (loop increment never executed)}}
if (j == 23) // missing {}'s
bar();
return 1;
@@ -17,7 +17,7 @@ int test1() {
int test1_B() {
for (int i = 0;
i != 10;
- ++i) { // expected-warning {{will never be executed}}
+ ++i) { // expected-warning {{loop will run at most once (loop increment never executed)}}
if (j == 23) // missing {}'s
bar();
return 1;
OpenPOWER on IntegriCloud