repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
slice: remove unneeded nr_nrbits from EXPR_SLICE
[smatch.git]
/
validation
/
char-unsigned.c
blob
354aa40d66c97dafe963841c8ba8ee16fea77daf
1
#define MASK ((1 << __CHAR_BIT__) - 1)
2
3
void
foo
(
void
)
4
{
5
_Static_assert
((
char
) -
1
== (-
1
&
MASK
),
"plain char is not unsigned"
);
6
}
7
8
/*
9
* check-name: funsigned-char
10
* check-command: sparse -funsigned-char -Wno-decl $file
11
*/