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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wtautological-compare-6.c
blob
fcdca72e3f34a585fada8a3de230b9d5f86c0a09
1
/* PR c/82437 */
2
/* { dg-do compile { target int32plus } } */
3
/* { dg-options "-Wtautological-compare" } */
4
5
int
6
foo
(
unsigned int
x
)
7
{
8
if
((
x
& -
1879048192
) != -
1879048192
)
/* { dg-bogus "bitwise comparison always evaluates to" } */
9
return
0
;
10
return
1
;
11
}