blob: 330c148bb59d11f3515889163d0fbfe75a624dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-options "-Wsign-compare" } */
int foo()
{
unsigned char b = '1';
bool x = ~b; /* { dg-warning "promoted ~unsigned is always non-zero" } */
return 0;
}
|