tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / affinity-clause-2.f90
blob54768a8aeb28d1efe22f0ddade52a884698ee291
1 subroutine foo
2 implicit none
3 external bar
4 integer :: i, b(10)
5 !$omp task affinity(bar(1)) ! { dg-error "not a variable" }
6 !!$omp end task
7 !$omp task affinity(b(1.0)) ! { dg-warning "Legacy Extension: REAL array index" }
8 !$omp end task
9 !$omp task affinity( iterator( real :: i=1.0:5:1) : b(i)) ! { dg-error "Expected INTEGER type" }
10 !!$omp end task
11 !$omp task affinity(iterator(i=1.0:5:1) : b(i)) ! { dg-error "Scalar integer expression for range begin expected" }
12 !$omp end task
13 !$omp task affinity(iterator(i=1:5.0:1) : b(i)) ! { dg-error "Scalar integer expression for range end expected" }
14 !$omp end task
15 !$omp task affinity(iterator(i=1:5:1.0) : b(i)) ! { dg-error "Scalar integer expression for range step expected" }
16 !$omp end task
17 !$omp task affinity(iterator(j=1:3:5, i=1:5:0) : b(i)) ! { dg-error "Nonzero range step expected" }
18 !$omp end task
19 !$omp task affinity(iterator(=1:5:0) : b(i)) ! { dg-error "31:Syntax error in OpenMP variable list" }
20 !!$omp end task
21 !$omp task affinity(iterator(b(2)=1:5:0) : b(i)) ! { dg-error "31:Syntax error in OpenMP variable list" }
22 !!$omp end task
23 !$omp task affinity(iterator(i=1:5:0, i=4:6) : b(i)) ! { dg-error "Same identifier 'i' specified again" }
24 !!$omp end task
25 !$omp task affinity(iterator(i=1) : b(i)) ! { dg-error "Expected range-specification" }
26 !!$omp end task
27 end