blob: 99e170ad7984011824ca733f3dfdc8255fed3cb4 [file] [log] [blame]
! PR middle-end/36726
! { dg-do compile }
! { dg-options "-fopenmp" }
subroutine foo
integer, allocatable :: vs(:)
!$omp parallel private (vs)
allocate (vs(10))
vs = 2
deallocate (vs)
!$omp end parallel
end subroutine foo
subroutine bar
integer, allocatable :: vs(:)
!$omp parallel private (vs)
allocate (vs(10))
vs = 2
deallocate (vs)
!$omp end parallel
end subroutine bar