diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-08 21:40:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-08 21:40:08 +0000 |
commit | 19311e70edaa2d7bb0d709344aebea4fbbae2da4 (patch) | |
tree | e0698436bd41b66e14c88789f6f809ab1c8700bf /test/SemaCXX/decl-expr-ambiguity.cpp | |
parent | 56a965c0f77c9e6bffd65cc8f8796442a8527381 (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.cpp | 2 |
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}} |