blob: 933fa4e87992c86ebf7c121317a4e5c34ec74aa8 [file] [log] [blame]
bool different_types() {
float2x2 m;
float2 v;
float f;
return v == f || v == m || m == f ||
f == v || m == v || f == m ||
v != f || v != m || m != f ||
f != v || m != v || f != m ;
}
bool different_matrices() {
float2x2 m2;
float3x3 m3;
return m2 == m3 || m2 != m3;
}
bool different_vectors() {
float2 v2;
float3 v3;
return v2 == v3 || v2 != v3;
}
/*%%*
type mismatch: '==' cannot operate on 'float2', 'float'
type mismatch: '==' cannot operate on 'float2', 'float2x2'
type mismatch: '==' cannot operate on 'float2x2', 'float'
type mismatch: '==' cannot operate on 'float', 'float2'
type mismatch: '==' cannot operate on 'float2x2', 'float2'
type mismatch: '==' cannot operate on 'float', 'float2x2'
type mismatch: '!=' cannot operate on 'float2', 'float'
type mismatch: '!=' cannot operate on 'float2', 'float2x2'
type mismatch: '!=' cannot operate on 'float2x2', 'float'
type mismatch: '!=' cannot operate on 'float', 'float2'
type mismatch: '!=' cannot operate on 'float2x2', 'float2'
type mismatch: '!=' cannot operate on 'float', 'float2x2'
type mismatch: '==' cannot operate on 'float2x2', 'float3x3'
type mismatch: '!=' cannot operate on 'float2x2', 'float3x3'
type mismatch: '==' cannot operate on 'float2', 'float3'
type mismatch: '!=' cannot operate on 'float2', 'float3'
*%%*/