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
* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
overflow-warn-5.c
blob
b2c8dc31d9571ab017b00c167696d217634c8347
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 conversion from .int. to .unsigned char. chages value" } */
7
}