* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[official-gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / PS / body.c
blob9b10041d669ab9a92d052d46bc5a365d71aea52d
1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus -fopenmp" } */
4 int *a, *b, c;
5 void *jmpbuf[10];
7 void foo()
9 int j;
11 #pragma simd
12 for (int i=0; i < 1000; ++i)
14 if (c == 6)
15 __builtin_setjmp (jmpbuf); /* { dg-error "setjmp" } */
16 a[i] = b[i];
19 #pragma simd
20 for (int i=0; i < 1000; ++i)
22 if (c==5)
23 break; /* { dg-error "break statement " } */
26 #pragma simd
27 for (int i=0; i < 1000; ++i)
29 #pragma omp for /* { dg-error "OpenMP constructs may not" } */
30 for (j=0; j < 1000; ++j)
31 a[i] = b[i];