From d0849254deaf68fa4353b711eebfa207335ddbb2 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 23 Jan 2010 19:55:29 +0000 Subject: Baby steps towards migrating the InitListChecker over to the new initialization code. Pass an InitializedEntity pointer through to most init checker functions. Right now, it's ignored everywhere except when initializing vectors in C++. llvm-svn: 94325 --- clang/test/SemaCXX/aggregate-initialization.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/SemaCXX/aggregate-initialization.cpp') diff --git a/clang/test/SemaCXX/aggregate-initialization.cpp b/clang/test/SemaCXX/aggregate-initialization.cpp index ac482151fac..2e6c1a329a8 100644 --- a/clang/test/SemaCXX/aggregate-initialization.cpp +++ b/clang/test/SemaCXX/aggregate-initialization.cpp @@ -30,3 +30,7 @@ NonAggr4 na4 = { 17 }; // expected-error{{non-aggregate type 'struct NonAggr4' c // PR5817 typedef int type[][2]; 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 *'}} -- cgit v1.2.3