Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/pr103695.f90

raw
1 ! This test case used to ICE in verify_ssa due to the iterator variable j
2 ! incorrectly being inserted into program scope.
3
4 program p
5 integer :: i
6 do i = 1, 3
7 call sub (s(i))
8 end do
9 contains
10 function s(n) result(z)
11 integer, target, intent(in) :: n
12 integer, pointer :: z
13 integer :: a(8), b(8), c(8)
14 !$omp task affinity (iterator(j=1:8) : a(j), b(j), c(j))
15 !$omp end task
16 z => n
17 end
18 end