2 // { dg-options "-fopenmp" }
4 #pragma omp declare target
11 #pragma omp for linear (i:1) // { dg-error "iteration variable .i. should not be linear" }
12 for (i = 0; i < 32; i++)
19 #pragma omp distribute parallel for linear (i:1) // { dg-error ".linear. is not valid for .#pragma omp distribute parallel for." }
20 for (i = 0; i < 32; i++)
27 #pragma omp parallel for linear (i:1) collapse(1)
28 for (i = 0; i < 32; i++) // { dg-error "iteration variable .i. should not be linear" }
35 #pragma omp for linear (i:1) linear (j:2) collapse(2) // { dg-error "iteration variable .i. should not be linear" }
36 for (i = 0; i < 32; i++) // { dg-error "iteration variable .j. should not be linear" "" { target *-*-* } .-1 }
37 for (j = 0; j < 32; j+=2)
44 #pragma omp target teams distribute parallel for linear (i:1) linear (j:2) collapse(2) // { dg-error ".linear. is not valid for .#pragma omp target teams distribute parallel for." }
45 for (i = 0; i < 32; i++)
46 for (j = 0; j < 32; j+=2)
53 #pragma omp parallel for linear (i:1) collapse(2) linear (j:2) // { dg-error "iteration variable .i. should not be linear" "" { target *-*-* } .+1 }
54 for (i = 0; i < 32; i++) // { dg-error "iteration variable .j. should not be linear" }
55 for (j = 0; j < 32; j+=2)
63 #pragma omp for linear (i:1) // { dg-error "iteration variable .i. should not be linear" }
64 for (i = 0; i < 32; i++)
72 #pragma omp distribute parallel for linear (i:1) // { dg-error ".linear. is not valid for .#pragma omp distribute parallel for." }
73 for (i = 0; i < 32; i++)
81 #pragma omp parallel for linear (i:1) collapse(1)
82 for (i = 0; i < 32; i++) // { dg-error "iteration variable .i. should not be linear" }
90 #pragma omp for linear (i:1) linear (j:2) collapse(2) // { dg-error "iteration variable .i. should not be linear" }
91 for (i = 0; i < 32; i++) // { dg-error "iteration variable .j. should not be linear" "" { target *-*-* } .-1 }
92 for (j = 0; j < 32; j+=2)
100 #pragma omp target teams distribute parallel for linear (i:1) linear (j:2) collapse(2) // { dg-error ".linear. is not valid for .#pragma omp target teams distribute parallel for." }
101 for (i = 0; i < 32; i++)
102 for (j = 0; j < 32; j+=2)
110 #pragma omp parallel for linear (i:1) collapse(2) linear (j:2) // { dg-error "iteration variable .i. should not be linear" "" { target *-*-* } .+1 }
111 for (i = 0; i < 32; i++) // { dg-error "iteration variable .j. should not be linear" }
112 for (j = 0; j < 32; j+=2)
116 #pragma omp end declare target
122 #pragma omp target teams