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
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
overflow-warn-5.C
blob
472d4a7cab14185384cebeb819a6d104093f21fc
1
/* PR c/27273 */
2
/* { dg-do compile } */
3
/* { dg-options "-Woverflow" } */
4
5
unsigned char rx_async(unsigned char p) {
6
return p & 512; /* { dg-warning "overflow in implicit constant conversion" } */
7
}