blob: fbe3d89f10b2af65f87f0a518192514931987ae6 [file] [log] [blame]
Tanya Lattner5ac257d2011-04-15 22:42:59 +00001// RUN: %clang_cc1 %s -emit-llvm -o %t
2
Tanya Lattner5bea4c32011-04-16 01:00:29 +00003typedef __attribute__((ext_vector_type(4))) unsigned char uchar4;
Tanya Lattner5bea4c32011-04-16 01:00:29 +00004typedef __attribute__((ext_vector_type(8))) unsigned char uchar8;
Tanya Lattner5ac257d2011-04-15 22:42:59 +00005
6// OpenCL allows vectors to be initialized by vectors Handle bug in
7// VisitInitListExpr for this case below.
Tanya Lattner207189e2011-07-07 00:12:54 +00008void foo( uchar8 x )
Tanya Lattner5ac257d2011-04-15 22:42:59 +00009{
Tanya Lattner207189e2011-07-07 00:12:54 +000010 uchar4 val[4] = {{(uchar4){x.lo}}};
11}