commit | eb21924a42bfa8a82572ad58fb18839ebbb0f979 | [log] [tgz] |
---|---|---|
author | Argiris Kirtzidis <akyrtzi@gmail.com> | Sun Oct 05 15:19:49 2008 +0000 |
committer | Argiris Kirtzidis <akyrtzi@gmail.com> | Sun Oct 05 15:19:49 2008 +0000 |
tree | c0cf6e61f5d977832439f1de332672d3f94c0cf9 | |
parent | 88527fbeeb477b3b673df505d1546e4d9bd2f4cb [diff] [blame] |
Fix Parser::isCXXConditionDeclaration to properly resolve declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57111 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/decl-expr-ambiguity.cpp b/test/SemaCXX/decl-expr-ambiguity.cpp index 5b4ddbe..7c274de 100644 --- a/test/SemaCXX/decl-expr-ambiguity.cpp +++ b/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -19,4 +19,5 @@ typeof(int[])(f) = { 1, 2 }; // expected-warning {{statement was disambiguated as declaration}} void(b)(int); int(d2) __attribute__(()); // expected-warning {{statement was disambiguated as declaration}} + if (int(a)=1) {} }