aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cilk-plus/for1.c
blob: 4fb534286d9a636dd91e13e6e74260b4ac9378b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

int *a, *b, *c;

void foo()
{
  int i, j;
  // The initialization shall declare or initialize a *SINGLE* variable.
#pragma simd
  for (i=0, j=5; i < 1000; i++) // { dg-error "expected ';' before ','" }
    a[i] = b[j];
}