1 2 3 4 5 6 7 8
/* { dg-do compile } */ /* { dg-options "-Wno-shift-count-negative" } */ void foo() { unsigned i1 = 1U << -1; unsigned i2 = 1U >> -1; }