Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/unroll-12.f90

raw
1 subroutine test1
2 implicit none
3 integer :: i
4 !$omp unroll
5 do while (i < 10) ! { dg-error "!\\\$OMP UNROLL cannot be a DO WHILE or DO without loop control at \\\(1\\\)" }
6 call dummy(i)
7 i = i + 1
8 end do
9 end subroutine test1
10
11 subroutine test2
12 implicit none
13 integer :: i
14 !$omp unroll
15 do ! { dg-error "!\\\$OMP UNROLL cannot be a DO WHILE or DO without loop control at \\\(1\\\)" }
16 call dummy(i)
17 i = i + 1
18 if (i >= 10) exit
19 end do
20 end subroutine test2
21
22 subroutine test3
23 implicit none
24 integer :: i
25 !$omp unroll
26 do concurrent (i=1:10) ! { dg-error "!\\\$OMP UNROLL cannot be a DO CONCURRENT loop at \\\(1\\\)" }
27 call dummy(i) ! { dg-error "Subroutine call to 'dummy' in DO CONCURRENT block at \\\(1\\\) is not PURE" }
28 end do
29 end subroutine test3