diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-07 08:35:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-07 08:35:56 +0000 |
commit | e20c83d9ede057602e78c482e644a3d44a966f36 (patch) | |
tree | 9c1259476ea5f128132f8c47606d079cf9fb6d37 /clang/test/SemaCXX/dcl_init_aggr.cpp | |
parent | 4ff9ff974cc1944cc5f38c2c808938a29f235d60 (diff) | |
download | bcm5719-llvm-e20c83d9ede057602e78c482e644a3d44a966f36.tar.gz bcm5719-llvm-e20c83d9ede057602e78c482e644a3d44a966f36.zip |
PR12670: Support for initializing an array of non-aggregate class type from an
initializer list. Patch by Olivier Goffart, with extra testcases by Meador Inge
and Daniel Lunow.
llvm-svn: 159896
Diffstat (limited to 'clang/test/SemaCXX/dcl_init_aggr.cpp')
-rw-r--r-- | clang/test/SemaCXX/dcl_init_aggr.cpp | 2 |
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 bd3de9eb7e1..8c5e654fca2 100644 --- a/clang/test/SemaCXX/dcl_init_aggr.cpp +++ b/clang/test/SemaCXX/dcl_init_aggr.cpp @@ -15,7 +15,7 @@ struct NonAggregate { }; NonAggregate non_aggregate_test = { 1, 2 }; // expected-error{{non-aggregate type 'NonAggregate' cannot be initialized with an initializer list}} -NonAggregate non_aggregate_test2[2] = { { 1, 2 }, { 3, 4 } }; // expected-error 2 {{initialization of non-aggregate type 'NonAggregate' with an initializer list}} +NonAggregate non_aggregate_test2[2] = { { 1, 2 }, { 3, 4 } }; // expected-error 2 {{non-aggregate type 'NonAggregate' cannot be initialized with an initializer list}} // C++ [dcl.init.aggr]p3 |