make get_value() return a value for bitwise or expressions.
[smatch.git] / validation / dubious-bitwise-with-not.c
blobe076899af18ab2eb993b80eed0b0f2970dd126bc
1 static unsigned int ok1 = !1 && 2;
2 static unsigned int bad1 = !1 & 2;
3 /*
4 * check-name: Dubious bitwise operation on !x
6 * check-error-start
7 dubious-bitwise-with-not.c:2:31: warning: dubious: !x & y
8 * check-error-end
9 */