Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr8715.c
blob: 2878a48a4d3df5d556c461e8753dbcb9bfed37cb [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wsign-compare -std=c99" } */
#include
<stdbool.h>
int
foo
()
{
unsigned
char
b
=
'1'
;
bool
x
=
~
b
;
/* { dg-warning "promoted bitwise complement of an unsigned value is always nonzero" } */
return
0
;
}