blob: 8454b17cf598c4eab541b4d04a1858e7473ef04b [file] [log] [blame]
Tanya Lattnerb92ae0e2011-04-15 22:42:59 +00001// RUN: %clang_cc1 %s -emit-llvm -o %t
2
3typedef __attribute__((ext_vector_type(8))) unsigned char uchar8;
4typedef __attribute__((ext_vector_type(4))) unsigned long ulong4;
5typedef __attribute__((ext_vector_type(16))) unsigned char uchar16;
6
7// OpenCL allows vectors to be initialized by vectors Handle bug in
8// VisitInitListExpr for this case below.
9void foo( ulong4 v )
10{
11 uchar8 val[4] = {{(uchar8){((uchar16)(v.lo)).lo}}};
12}