summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/dcl_init_aggr.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-23 20:20:40 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-23 20:20:40 +0000
commit73eb7cd3514cf3124e751f03dd80990bb7d070c1 (patch)
tree0ad11ab141c9f25bb16ea497f2bbf260eb77f21a /clang/test/SemaCXX/dcl_init_aggr.cpp
parent0cf999b663f8cde815196fc7b65ee33ca41077c4 (diff)
downloadbcm5719-llvm-73eb7cd3514cf3124e751f03dd80990bb7d070c1.tar.gz
bcm5719-llvm-73eb7cd3514cf3124e751f03dd80990bb7d070c1.zip
Use the new init code for member subobjects.
llvm-svn: 94329
Diffstat (limited to 'clang/test/SemaCXX/dcl_init_aggr.cpp')
-rw-r--r--clang/test/SemaCXX/dcl_init_aggr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/dcl_init_aggr.cpp b/clang/test/SemaCXX/dcl_init_aggr.cpp
index 07ddb0add2c..861eb3dcb16 100644
--- a/clang/test/SemaCXX/dcl_init_aggr.cpp
+++ b/clang/test/SemaCXX/dcl_init_aggr.cpp
@@ -120,4 +120,4 @@ u u1 = { 1 };
u u2 = u1;
u u3 = 1; // expected-error{{no viable conversion}}
u u4 = { 0, "asdf" }; // expected-error{{excess elements in union initializer}}
-u u5 = { "asdf" }; // expected-error{{incompatible type initializing 'char const [5]', expected 'int'}}
+u u5 = { "asdf" }; // expected-error{{cannot initialize a member subobject of type 'int' with an lvalue of type 'char const [5]'}}
OpenPOWER on IntegriCloud