returnC?X:Y; // expected-error {{vector condition type 'char2' (vector of 2 'char' values) and result type (vector of 2 'int' values) do not have elements of the same size}}
}
int2ntest02(char2C,int2X,int2Y)
{
returnC?X:Y; // expected-error {{vector condition type 'char2' (vector of 2 'char' values) and result type 'int2' (vector of 2 'int' values) do not have elements of the same size}}
}
uchar2ntest03(int2C,ucharX,ucharY)
{
returnC?X:Y; // expected-error {{vector condition type 'int2' (vector of 2 'int' values) and result type (vector of 2 'unsigned char' values) do not have elements of the same size}}
}
float2ntest04(int2C,int2X,float2Y)
{
returnC?X:Y; // expected-error {{can't convert between vector values of different size ('int2' (vector of 2 'int' values) and 'float2' (vector of 2 'float' values))}}
}
float2ntest05(int2C,int2X,floatY)
{
returnC?X:Y; // expected-error {{can't convert between vector values of different size ('int2' (vector of 2 'int' values) and 'float')}}
}
char2ntest06(int2C,char2X,char2Y)
{
returnC?X:Y; // expected-error {{vector condition type 'int2' (vector of 2 'int' values) and result type 'char2' (vector of 2 'char' values) do not have elements of the same size}}
}
floatntest07(floatC,floatX,floatY)
{
returnC?X:Y; // expected-error {{used type 'float' where floating point type is not allowed}}
}
float2ntest08(float2C,float2X,float2Y)
{
returnC?X:Y; // expected-error {{used type 'float2' (vector of 2 'float' values) where floating point type is not allowed}}
}
//Tryingtocreateaint2vectoroutofpointers.
int2ntest09(int2C,globalint*X,globalint*Y)
{
returnC?X:Y; // expected-error {{used type '__global int *' where integer or floating point type is required}}
}
char3ntest10(charC,char3X,char2Y)
{
returnC?X:Y; // expected-error {{can't convert between vector values of different size ('char3' (vector of 3 'char' values) and 'char2' (vector of 2 'char' values))}}
}
char3ntest11(char2C,char3X,charY)
{
returnC?X:Y; // expected-error {{vector condition type 'char2' (vector of 2 'char' values) and result type 'char3' (vector of 3 'char' values) do not have the same number of elements}}
}
intfoo1(int);
intfoo2(int);
unsignedintntest12(int2C)
{
return(unsignedint)(C?foo1:foo2); // expected-error {{taking address of function is not allowed}}