PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.dg / overflow-warn-5.c
blob1a5aa0c6059b4fd3126845dab9d1dff465f1e49f
1 /* PR c/27273 */
2 /* { dg-do compile } */
3 /* { dg-options "-Woverflow" } */
5 unsigned char rx_async(unsigned char p) {
6 return p & 512; /* { dg-warning "overflow in conversion from .int. to .unsigned char. changes value" } */