1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -o %t 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuctypedef __attribute__((ext_vector_type(4))) unsigned char uchar4; 4*f4a2713aSLionel Sambuctypedef __attribute__((ext_vector_type(8))) unsigned char uchar8; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc// OpenCL allows vectors to be initialized by vectors Handle bug in 7*f4a2713aSLionel Sambuc// VisitInitListExpr for this case below. 8*f4a2713aSLionel Sambucvoid foo( uchar8 x ) 9*f4a2713aSLionel Sambuc{ 10*f4a2713aSLionel Sambuc uchar4 val[4] = {{(uchar4){x.lo}}}; 11*f4a2713aSLionel Sambuc} 12