aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr69771.c
blob: d03cbba668fbdff75d2f190ec1629ef4502b404c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR rtl-optimization/69771 */
/* { dg-do compile } */
/* { dg-require-effective-target int32plus } */

unsigned char a = 5, c;
unsigned short b = 0;
unsigned d = 0x76543210;

void
foo (void)
{
  c = d >> ~(a || ~b);	/* { dg-warning "shift count is negative" } */
}