summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20000717-1.c
blob: 9a0c747ad5b253ce05e132ade8944a8839f44473 (plain)
1
2
3
4
5
6
7
8
9
10
11
short
inner_product (short *a, short *b)
{
  int i;
  short sum = 0;

  for (i = 9; i >= 0; i--)
    sum += (*a++) * (*b++);

  return sum;
}