Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr8715.C
blob: fccb25aa7e5dba56f32f43b0e5f9120ff9a7aad5 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wsign-compare" } */
int
foo
()
{
unsigned
char
b
=
'1'
;
bool
x
=
~
b
;
/* { dg-warning "promoted bitwise complement of an unsigned value is always nonzero" } */
return
0
;
}