[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-26.c
blobef805b56d25292aaa8744b07d10a6d9d078ee837
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wstrict-overflow" } */
4 int
5 f (int i, int j)
7 unsigned int c = 0;
8 if (i < j)
10 unsigned int n = j - i;
11 unsigned int i;
12 for (i = 0; i < n; i++) /* { dg-bogus "signed overflow" } */
13 c++;
15 return c;