* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[official-gcc.git] / gcc / testsuite / gcc.dg / cilk-plus / for2.c
blob285f35a5079a94341d808efaabf7a6037ea81651
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fcilkplus" } */
4 int *a, *b;
6 void foo()
8 #pragma simd
9 for (const int ci=0; ci<1000; ++ci) /* { dg-error "increment of read-only var\|invalid controlling\|invalid increment\|assignment of read" } */
10 a[ci] = b[ci];