Brian Osman | bf2163f | 2020-09-16 16:21:40 -0400 | [diff] [blame] | 1 | // Expect 10 errors (one per function) |
2 | |||||
3 | float x; | ||||
4 | |||||
5 | void shr_eq() { x >>= 1; } | ||||
6 | void shl_eq() { x <<= 1; } | ||||
7 | void and_eq() { x &= 1; } | ||||
8 | void or_eq() { x |= 1; } | ||||
9 | void xor_eq() { x ^= 1; } | ||||
10 | |||||
11 | void shr() { x = x >> 1; } | ||||
12 | void shl() { x = x << 1; } | ||||
13 | void and() { x = x & 1; } | ||||
14 | void or() { x = x | 1; } | ||||
15 | void xor() { x = x ^ 1; } |