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}}
returnC?X:Y; // expected-error {{implicit conversions between vector types ('int2' (vector of 2 'int' values) and 'float2' (vector of 2 'float' values)) are not permitted}}
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}}
returnC?X:Y; // expected-error {{implicit conversions between vector types ('char3' (vector of 3 'char' values) and 'char2' (vector of 2 'char' values)) are not permitted}}
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}}
return(unsignedint)(C?foo1:foo2); // expected-error {{taking address of function is not allowed}} expected-error {{taking address of function is not allowed}}