repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr8715.C
blob
330c148bb59d11f3515889163d0fbfe75a624dcc
1
/* { dg-do compile } */
2
/* { dg-options "-Wsign-compare" } */
3
4
int foo()
5
{
6
unsigned char b = '1';
7
8
bool x = ~b; /* { dg-warning "promoted ~unsigned is always non-zero" } */
9
10
return 0;
11
}