Debian Codegraph @

gcc/testsuite/gcc.dg/pr60351.c

raw
1 /* PR c/60351 */
2 /* { dg-do compile } */
3
4 void
5 f (int i)
6 {
7 i >> -1; /* { dg-warning "5:right shift count is negative" } */
8 i >> 250; /* { dg-warning "5:right shift count >= width of type" } */
9 i << -1; /* { dg-warning "5:left shift count is negative" } */
10 i << 250; /* { dg-warning "5:left shift count >= width of type" } */
11 }