Sign in
chromium
/
native_client
/
nacl-gcc
/
f80d6b9ee7f94755c697ffb7194fb01dd0c537dd
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr8715.c
blob: e45e77c09f4cb65b50a04a06c862bb2b17f5a115 [
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 ~unsigned is always non-zero" } */
return
0
;
}