Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
palmer
/
sparse
/
f0e6938bffe0e21cde6e60ff63ed8877d4d04e26
/
.
/
validation
/
char-unsigned.c
blob: 354aa40d66c97dafe963841c8ba8ee16fea77daf [
file
] [
log
] [
blame
]
#define
MASK
((
1
<<
__CHAR_BIT__
)
-
1
)
void
foo
(
void
)
{
_Static_assert
((
char
)
-
1
==
(-
1
&
MASK
),
"plain char is not unsigned"
);
}
/*
* check-name: funsigned-char
* check-command: sparse -funsigned-char -Wno-decl $file
*/