Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50193-1.c
blob6abc9c4057086d0c9dfb20b9de319395aa0c5825
1 /* PR 50193: ARM: ICE on a | (b << negative-constant) */
2 /* Ensure that the compiler doesn't ICE. */
4 /* { dg-options "-O2" } */
6 int
7 foo(int a, int b)
9 return a | (b << -3); /* { dg-warning "left shift count is negative" } */