summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-expr-ambiguity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/decl-expr-ambiguity.cpp')
-rw-r--r--clang/test/SemaCXX/decl-expr-ambiguity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/decl-expr-ambiguity.cpp b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
index 5a76b933425..1d690606583 100644
--- a/clang/test/SemaCXX/decl-expr-ambiguity.cpp
+++ b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -7,8 +7,8 @@ void f() {
// Expressions.
T(a)->m = 7;
- int(a)++; // expected-error {{invalid lvalue in increment/decrement expression}}
- __extension__ int(a)++; // expected-error {{invalid lvalue in increment/decrement expression}}
+ int(a)++; // expected-error {{expression is not assignable}}
+ __extension__ int(a)++; // expected-error {{expression is not assignable}}
typeof(int)(a,5)<<a; // expected-error {{function-style cast to a builtin type can only take one argument}}
void(a), ++a; // expected-warning {{statement was disambiguated as expression}} expected-warning {{expression result unused}}
if (int(a)+1) {}
OpenPOWER on IntegriCloud