aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr108791.c
blob: c1c1cb22aada0e495adc30848bcb964b89af5483 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */

int f (int *a(), int *b, int *c, int *d)
{
  int s = 0;
  for (int *i = (int *)a; i < b; ++i, ++c)
    s += *c * d[*i];
  return s;
}