diff options
Diffstat (limited to 'clang/test/SemaCXX/condition.cpp')
| -rw-r--r-- | clang/test/SemaCXX/condition.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/condition.cpp b/clang/test/SemaCXX/condition.cpp index b2f716f8840..ee9cf1a37ea 100644 --- a/clang/test/SemaCXX/condition.cpp +++ b/clang/test/SemaCXX/condition.cpp @@ -18,7 +18,7 @@ void test() { while (struct S {} x=0) ; // expected-error: {{types may not be defined in conditions}} expected-error: {{incompatible type}} expected-error: {{expression must have bool type}} while (struct {} x=0) ; // expected-error: {{types may not be defined in conditions}} expected-error: {{incompatible type}} expected-error: {{expression must have bool type}} - switch (enum {E} x=0) ; // expected-error: {{types may not be defined in conditions}} + switch (enum {E} x=0) ; // expected-error: {{types may not be defined in conditions}} expected-error: {{incompatible type}} if (int x=0) { // expected-error: {{previous definition is here}} int x; // expected-error: {{redefinition of 'x'}} |

