☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
mregtst.c
☽
☼
gcc/testsuite/gcc.c-torture/compile/mregtst.c
code
plain
raw
1
/* { dg-additional-options "-std=gnu89" } */
2
3
foo (a, p)
4
int *p;
5
{
6
int old, new, i;
7
8
old = 0;
9
for (i = 1; i < 100; i++)
10
{
11
new = p[i];
12
if (new < old)
13
a++;
14
old = new;
15
if (old == 0)
16
return 0;
17
}
18
return a;
19
}