/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-original -fcilkplus" } */

volatile int *a, *b;

void foo()
{
  int j, k;

#pragma simd linear(j : 4, k) vectorlength(4)
  for (int i=0; i < 1000; ++i)
    a[i] = b[j];
}

/* { dg-final { scan-tree-dump-times "linear\\(j:4\\)" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "linear\\(k:1\\)" 1 "original" } } */
/* { dg-final { scan-tree-dump-times "safelen\\(4\\)" 1 "original" } } */
