OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr8715.C
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
}