slice: remove unneeded nr_nrbits from EXPR_SLICE
[smatch.git] / validation / char-unsigned.c
blob354aa40d66c97dafe963841c8ba8ee16fea77daf
1 #define MASK ((1 << __CHAR_BIT__) - 1)
3 void foo(void)
5 _Static_assert((char) -1 == (-1 & MASK), "plain char is not unsigned");
8 /*
9 * check-name: funsigned-char
10 * check-command: sparse -funsigned-char -Wno-decl $file