summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr77516.f90
blob: 7852abf8bcf9d1ab19dd4f6fd0b2768236e7e5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! PR fortran/77516
! { dg-do compile }

program pr77516
   integer :: i, x
   x = 0
!$omp simd safelen(0) reduction(+:x)
   do i = 1, 8
      x = x + 1
   end do
   print *, x
end