diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-06-23 18:11:15 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-06-23 18:11:15 +0000 |
commit | b77ebd749af6171a565c19139849fc7d8d4209e4 (patch) | |
tree | 124ac4e509017b031febc648fd1cd2d9d0ac75e9 /clang/test/Parser/cxx0x-condition.cpp | |
parent | 38bb1c15fdf76ab0632c0062d06867cb6c93c7af (diff) | |
download | bcm5719-llvm-b77ebd749af6171a565c19139849fc7d8d4209e4.tar.gz bcm5719-llvm-b77ebd749af6171a565c19139849fc7d8d4209e4.zip |
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
Diffstat (limited to 'clang/test/Parser/cxx0x-condition.cpp')
-rw-r--r-- | clang/test/Parser/cxx0x-condition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |