summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr44536.f90
blob: 0dc896dccea2fb346f0ed51646e3b44851f035eb (plain)
1
2
3
4
5
6
7
8
9
10
! PR fortran/44536
! { dg-do compile }
! { dg-options "-fopenmp" }
      subroutine foo (a, i, j)
        integer, dimension(:) :: a
        integer :: i, j
!$omp parallel default(none) shared(i, j)	! { dg-error "enclosing parallel" }
        j=a(i)					! { dg-error "not specified in" }
!$omp end parallel
      end subroutine