diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-23 20:13:41 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-23 20:13:41 +0000 |
commit | 784f69940755dd66cf244dd84f57a57d358e5c43 (patch) | |
tree | 28793206eaaa39fc602e40179b92b9ef8b1e9cce /test/SemaCXX/aggregate-initialization.cpp | |
parent | 46171917dc87caf0c7a741a7301f36db2e20b132 (diff) |
Switch some array initialization over to the new init code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/aggregate-initialization.cpp')
-rw-r--r-- | test/SemaCXX/aggregate-initialization.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/aggregate-initialization.cpp b/test/SemaCXX/aggregate-initialization.cpp index 2e6c1a329a..35db65173f 100644 --- a/test/SemaCXX/aggregate-initialization.cpp +++ b/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 *'}} |