Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / OpenMP / private-is-pointer-allocatable-check.f90
blob7b3915d9a1104f58b5d07f1274ba75c061ce920b
1 ! RUN: %flang_fc1 -fopenmp -fsyntax-only %s
3 subroutine s
4 integer, pointer :: p
5 integer, target :: t
6 real(4), allocatable :: arr
8 !$omp parallel private(p)
9 p=>t
10 !$omp end parallel
12 allocate(arr)
13 !$omp parallel private(arr)
14 if (.not. allocated(arr)) then
15 print *, 'not allocated'
16 endif
17 !$omp end parallel
18 end subroutine