summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-condition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-condition.cpp')
-rw-r--r--clang/test/Parser/cxx-condition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-condition.cpp b/clang/test/Parser/cxx-condition.cpp
index 552d8236246..5b078429299 100644
--- a/clang/test/Parser/cxx-condition.cpp
+++ b/clang/test/Parser/cxx-condition.cpp
@@ -5,7 +5,7 @@ void f() {
while (a) ;
while (int x) ; // expected-error {{expected '=' after declarator}}
while (float x = 0) ;
- if (const int x = a) ; // expected-warning{{empty body}}
+ if (const int x = a) ; // expected-warning{{empty body}} expected-note{{put the semicolon on a separate line to silence this warning}}
switch (int x = a+10) {}
for (; int x = ++a; ) ;
}
OpenPOWER on IntegriCloud