1 /* { dg-do compile { target c++11 } } */
3 /* This test case is expected to fail due to errors. */
5 int f1 (int depth, int iter);
6 int f2 (int depth, int iter);
8 void s1 (int a1, int a2, int a3)
12 [[ omp :: directive (for, collapse(3)) ]]
13 for (i = 0; i < a1; i++)
16 for (j = 0; j < a2; j++)
18 [[ omp :: directive (barrier) ]] ; /* { dg-error "intervening code must not contain OpenMP directives" } */
21 continue; /* { dg-error "invalid exit" } */
23 break; /* { dg-error "invalid exit" } */
24 for (k = 0; k < a3; k++)
31 for (k = 0; k < a3; k++) /* { dg-error "loop not permitted in intervening code " } */