1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wstrict-overflow" } */
3
4 int
5 f (int i, int j)
6 {
7 unsigned int c = 0;
8 if (i < j)
9 {
10 unsigned int n = j - i;
11 unsigned int i;
12 for (i = 0; i < n; i++) /* { dg-bogus "signed overflow" } */
13 c++;
14 }
15 return c;
16 }