Debian Codegraph @

gcc/testsuite/gcc.dg/pr97979.c

raw
1 /* PR tree-optimization/97979 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-ccp" } */
4
5 short a = 0;
6 int b = 0;
7
8 void
9 foo (void)
10 {
11 unsigned short d = b;
12 a = d >> -2U; /* { dg-warning "right shift count >= width of type" } */
13 }