blob: 990242f1c2d33e1297e6050ffa2177c83ee36bac [file] [log] [blame]
Brian Osmanbf2163f2020-09-16 16:21:40 -04001// Expect 10 errors (one per function)
2
3float 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; }