1 // Tests that the use of uninitialized variable in assignment operator
2 // expression is detected.
6 x += 1; //~ ERROR use of possibly-uninitialized variable: `x`
9 x -= 1; //~ ERROR use of possibly-uninitialized variable: `x`
12 x *= 1; //~ ERROR use of possibly-uninitialized variable: `x`
15 x /= 1; //~ ERROR use of possibly-uninitialized variable: `x`
18 x %= 1; //~ ERROR use of possibly-uninitialized variable: `x`
21 x ^= 1; //~ ERROR use of possibly-uninitialized variable: `x`
24 x &= 1; //~ ERROR use of possibly-uninitialized variable: `x`
27 x |= 1; //~ ERROR use of possibly-uninitialized variable: `x`
30 x <<= 1; //~ ERROR use of possibly-uninitialized variable: `x`
33 x >>= 1; //~ ERROR use of possibly-uninitialized variable: `x`