blob: 0b9374b332b5f8c7b90ec94c3dafecabe64a6a7d [file] [log] [blame]
// Expect 10 errors (one per function)
float2x2 x;
void shr_eq() { x >>= 1; }
void shl_eq() { x <<= 1; }
void and_eq() { x &= 1; }
void or_eq() { x |= 1; }
void xor_eq() { x ^= 1; }
void shr() { x = x >> 1; }
void shl() { x = x << 1; }
void and() { x = x & 1; }
void or() { x = x | 1; }
void xor() { x = x ^ 1; }
/*%%*
type mismatch: '>>=' cannot operate on 'float2x2', 'int'
type mismatch: '<<=' cannot operate on 'float2x2', 'int'
type mismatch: '&=' cannot operate on 'float2x2', 'int'
type mismatch: '|=' cannot operate on 'float2x2', 'int'
type mismatch: '^=' cannot operate on 'float2x2', 'int'
type mismatch: '>>' cannot operate on 'float2x2', 'int'
type mismatch: '<<' cannot operate on 'float2x2', 'int'
type mismatch: '&' cannot operate on 'float2x2', 'int'
type mismatch: '|' cannot operate on 'float2x2', 'int'
type mismatch: '^' cannot operate on 'float2x2', 'int'
*%%*/