Ignore casts. foo((int *)&bar) is the same as foo(&bar) to this script.
[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 */