From b77ebd749af6171a565c19139849fc7d8d4209e4 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 23 Jun 2016 18:11:15 +0000 Subject: Revert r273548, "Rearrange condition handling so that semantic checks on a condition variable" as it caused a regression in -Wfor-loop-analysis. llvm-svn: 273589 --- clang/test/Parser/cxx0x-condition.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Parser/cxx0x-condition.cpp') diff --git a/clang/test/Parser/cxx0x-condition.cpp b/clang/test/Parser/cxx0x-condition.cpp index 071e09e4158..8b64bcf1273 100644 --- a/clang/test/Parser/cxx0x-condition.cpp +++ b/clang/test/Parser/cxx0x-condition.cpp @@ -23,9 +23,9 @@ void f() { if (S b(a)) {} // expected-error {{variable declaration in condition cannot have a parenthesized initializer}} - if (S b(n)) {} // expected-error {{a function type is not allowed here}} + if (S b(n)) {} // expected-error {{a function type is not allowed here}} expected-error {{must have an initializer}} if (S b(n) = 0) {} // expected-error {{a function type is not allowed here}} - if (S b(n) == 0) {} // expected-error {{a function type is not allowed here}} + if (S b(n) == 0) {} // expected-error {{a function type is not allowed here}} expected-error {{did you mean '='?}} S s(a); if (S{s}) {} // ok -- cgit v1.2.3