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" } */ }