blob: fbe3d89f10b2af65f87f0a518192514931987ae6 [file] [log] [blame]
Tanya Lattnerb92ae0e2011-04-15 22:42:59 +00001// RUN: %clang_cc1 %s -emit-llvm -o %t
2
Tanya Lattnerb6385e82011-04-16 01:00:29 +00003typedef __attribute__((ext_vector_type(4))) unsigned char uchar4;
Tanya Lattnerb6385e82011-04-16 01:00:29 +00004typedef __attribute__((ext_vector_type(8))) unsigned char uchar8;
Tanya Lattnerb92ae0e2011-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 Lattner99340782011-07-07 00:12:54 +00008void foo( uchar8 x )
Tanya Lattnerb92ae0e2011-04-15 22:42:59 +00009{
Tanya Lattner99340782011-07-07 00:12:54 +000010 uchar4 val[4] = {{(uchar4){x.lo}}};
11}