aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cilk-plus/for2.c
blob: 285f35a5079a94341d808efaabf7a6037ea81651 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O3 -fcilkplus" } */

int *a, *b;

void foo()
{
#pragma simd
  for (const int ci=0; ci<1000; ++ci) /* { dg-error "increment of read-only var\|invalid controlling\|invalid increment\|assignment of read" } */
    a[ci] = b[ci];
}