☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-26.c
☽
☼
gcc/testsuite/gcc.dg/Wstrict-overflow-26.c
code
plain
raw
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
}