summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/overflow-warn-5.c
blob: 472d4a7cab14185384cebeb819a6d104093f21fc (plain)
1
2
3
4
5
6
7
/* PR c/27273 */
/* { dg-do compile } */
/* { dg-options "-Woverflow" } */

unsigned char rx_async(unsigned char p) {
    return p & 512; /* { dg-warning "overflow in implicit constant conversion" } */
}