rt_gccstream/gcc/testsuite/gcc.dg/pr42630.c

10 lines
205 B
C

/* { dg-do compile } */
/* { dg-options "-O1 -fvariable-expansion-in-unroller -funroll-loops -fcompare-debug" } */
int sum(int *buf, int len)
{
int s = 0;
while (--len > 0) s += *buf++;
return s;
}