summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/aggregate-initialization.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-23 20:13:41 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-23 20:13:41 +0000
commit0cf999b663f8cde815196fc7b65ee33ca41077c4 (patch)
tree8b8465098a04d53710bb63aac6744d68df1412d7 /clang/test/SemaCXX/aggregate-initialization.cpp
parent0978af83b389b38edf3e57e2379415c7a31597a6 (diff)
downloadbcm5719-llvm-0cf999b663f8cde815196fc7b65ee33ca41077c4.tar.gz
bcm5719-llvm-0cf999b663f8cde815196fc7b65ee33ca41077c4.zip
Switch some array initialization over to the new init code.
llvm-svn: 94327
Diffstat (limited to 'clang/test/SemaCXX/aggregate-initialization.cpp')
-rw-r--r--clang/test/SemaCXX/aggregate-initialization.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/aggregate-initialization.cpp b/clang/test/SemaCXX/aggregate-initialization.cpp
index 2e6c1a329a8..35db65173f5 100644
--- a/clang/test/SemaCXX/aggregate-initialization.cpp
+++ b/clang/test/SemaCXX/aggregate-initialization.cpp
@@ -34,3 +34,6 @@ const type foo = {0};
// Vector initialization.
typedef short __v4hi __attribute__ ((__vector_size__ (8)));
__v4hi v1 = { (void *)1, 2, 3 }; // expected-error {{cannot initialize a vector element of type 'short' with an rvalue of type 'void *'}}
+
+// Array initialization.
+int a[] = { (void *)1 }; // expected-error {{cannot initialize an array element of type 'int' with an rvalue of type 'void *'}}
OpenPOWER on IntegriCloud