PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68317.c
blob7b5656395886e18a71d8815eca03292cfb50be12
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 void bar (int);
6 void
7 foo ()
9 int index = 0;
11 for (index; index <= 10; index--)
12 /* Result of the following multiply will overflow
13 when converted to signed int. */
14 bar ((0xcafe + index) * 0xdead);