summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr44036-3.f90
blob: 449cb9572d03a0538cbecc8a4dc339b74a4e4878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! PR fortran/44036
! { dg-do compile }
! { dg-options "-fopenmp" }
subroutine foo(a)
  integer, external :: a, c
  integer :: x
!$omp parallel default(none) private (x) shared (a)	! { dg-error "is not a variable" }
  x = a(6)
!$omp end parallel
!$omp parallel default(none) private (x) shared (c)	! { dg-error "is not a variable" }
  x = c(6)
!$omp end parallel
end