Files
clang-p2996/flang/test/Semantics/OpenMP/private-is-pointer-allocatable-check.f90
Kiran Chandramohan 3323a4bd3d [Flang][OpenMP] NFC: Remove omp prefix of test files in OpenMP Semantics
For tests in the OpenMP sub-directory the `omp` prefix is removed.
2023-02-25 11:21:38 +00:00

19 lines
348 B
Fortran

! RUN: %flang_fc1 -fopenmp -fsyntax-only %s
subroutine s
integer, pointer :: p
integer, target :: t
real(4), allocatable :: arr
!$omp parallel private(p)
p=>t
!$omp end parallel
allocate(arr)
!$omp parallel private(arr)
if (.not. allocated(arr)) then
print *, 'not allocated'
endif
!$omp end parallel
end subroutine