aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/decl-expr-ambiguity.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-08 21:40:08 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-08 21:40:08 +0000
commit19311e70edaa2d7bb0d709344aebea4fbbae2da4 (patch)
treee0698436bd41b66e14c88789f6f809ab1c8700bf /test/SemaCXX/decl-expr-ambiguity.cpp
parent56a965c0f77c9e6bffd65cc8f8796442a8527381 (diff)
Use the new-initialization code for initializing scalars with a
function-style cast. Previously, we had a (redundant, incorrect) semantic-checking path for non-class types, which allowed value-initialization of a reference type and then crashed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/decl-expr-ambiguity.cpp')
-rw-r--r--test/SemaCXX/decl-expr-ambiguity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/decl-expr-ambiguity.cpp b/test/SemaCXX/decl-expr-ambiguity.cpp
index 4243c1c0ea..9595faece2 100644
--- a/test/SemaCXX/decl-expr-ambiguity.cpp
+++ b/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -9,7 +9,7 @@ void f() {
T(a)->m = 7;
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}}
+ __typeof(int)(a,5)<<a; // expected-error {{excess elements in scalar initializer}}
void(a), ++a;
if (int(a)+1) {}
for (int(a)+1;;) {} // expected-warning {{expression result unused}}