summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/dcl_init_aggr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/dcl_init_aggr.cpp')
-rw-r--r--test/SemaCXX/dcl_init_aggr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/dcl_init_aggr.cpp b/test/SemaCXX/dcl_init_aggr.cpp
index bd3de9e..8c5e654 100644
--- a/test/SemaCXX/dcl_init_aggr.cpp
+++ b/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
OpenPOWER on IntegriCloud