// RUN: %clang_cc1 -fsyntax-only -verify %s -flax-vector-conversions=none
typedeffloat float4 __attribute__((vector_size(16)));typedefint int4 __attribute__((vector_size(16)));typedef int4*int4p;voidtest1(float4 a, int4 *result,inti){
result[i]= a;// expected-error {{assigning to 'int4' (vector of 4 'int' values) from incompatible type 'float4' (vector of 4 'float' values)}}
}voidtest2(float4 a, int4p result,inti){
result[i]= a;// expected-error {{assigning to 'int4' (vector of 4 'int' values) from incompatible type 'float4' (vector of 4 'float' values)}}
}// PR2039
typedefint a[5];voidtest3(void){typedefconst a b;
b r;// expected-note {{variable 'r' declared const here}}
r[0]=10;// expected-error {{cannot assign to variable 'r' with const-qualified type 'b' (aka 'const int[5]')}}
}inttest4(const a y){
y[0]=10;// expected-error {{read-only variable is not assignable}}
}