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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr8715.C
blob
fccb25aa7e5dba56f32f43b0e5f9120ff9a7aad5
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 bitwise complement of an unsigned value is always nonzero" } */
9
10
return 0;
11
}