2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / pr35130.f90
blob50ff351527abcfe736bf72a333fd1e70d36ebfae
1 ! PR middle-end/35130
3 program pr35130
4 implicit none
5 real, dimension(20) :: a
6 integer :: k
7 a(:) = 0.0
8 !$omp parallel do private(k)
9 do k=1,size(a)
10 call inner(k)
11 end do
12 !$omp end parallel do
13 if (any (a.ne.42)) call abort
14 contains
15 subroutine inner(i)
16 implicit none
17 integer :: i
18 a(i) = 42
19 end subroutine inner
20 end program pr35130