]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr97979.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr97979.c
CommitLineData
39f5e9ad
JJ
1/* PR tree-optimization/97979 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -fno-tree-ccp" } */
4
5short a = 0;
6int b = 0;
7
8void
9foo (void)
10{
11 unsigned short d = b;
12 a = d >> -2U; /* { dg-warning "right shift count >= width of type" } */
13}