blob: 19f8c4da407ecafd07e69666cf1b461bf5c51417 [file]
unsigned char
do_shift (unsigned char val, int bits) /* { dg-message "34: entry to 'do_shift' with problematic value for 'bits'" } */
{
return val << bits; /* { dg-warning "Wanalyzer-shift-count-overflow" } */
}
int
test (unsigned char ch)
{
return do_shift (ch, 1000); /* { dg-message "passing problematic value from 'test' to 'do_shift' via parameter 2" } */
}