1// Expect 10 errors (one per function) 2 3float2 x; 4 5void shr_eq() { x >>= 1; } 6void shl_eq() { x <<= 1; } 7void and_eq() { x &= 1; } 8void or_eq() { x |= 1; } 9void xor_eq() { x ^= 1; } 10 11void shr() { x = x >> 1; } 12void shl() { x = x << 1; } 13void and() { x = x & 1; } 14void or() { x = x | 1; } 15void xor() { x = x ^ 1; } 16 17/*%%* 18type mismatch: '>>=' cannot operate on 'float2', 'int' 19type mismatch: '<<=' cannot operate on 'float2', 'int' 20type mismatch: '&=' cannot operate on 'float2', 'int' 21type mismatch: '|=' cannot operate on 'float2', 'int' 22type mismatch: '^=' cannot operate on 'float2', 'int' 23type mismatch: '>>' cannot operate on 'float2', 'int' 24type mismatch: '<<' cannot operate on 'float2', 'int' 25type mismatch: '&' cannot operate on 'float2', 'int' 26type mismatch: '|' cannot operate on 'float2', 'int' 27type mismatch: '^' cannot operate on 'float2', 'int' 28*%%*/ 29