summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr42395.c
blob: 7d0b8324f683a161b30c27f2b1ab12ac2be38394 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR debug/42395 */
/* { dg-do compile } */
/* { dg-options "-O3 -ftree-vectorize -g" } */

void foo(int j, int *A)
{
  int i;
  for (i = 0; i < j; i ++) A[i] = i;
  for (; i < 4096; i ++) A[i] = 0;
}