aboutsummaryrefslogtreecommitdiffstats
path: root/validation/dubious-bitwise-with-not.c
blob: e076899af18ab2eb993b80eed0b0f2970dd126bc (plain)
1
2
3
4
5
6
7
8
9
static unsigned int ok1 = !1 && 2;
static unsigned int bad1 = !1 & 2;
/*
 * check-name: Dubious bitwise operation on !x
 *
 * check-error-start
dubious-bitwise-with-not.c:2:31: warning: dubious: !x & y
 * check-error-end
 */