Files
clang-p2996/flang/test/Semantics/OpenMP/shared-pointer.f90
Krzysztof Parzyszek d602f935da [flang][OpenMP] Treat POINTER variables as valid variable list items (#111722)
Follow-up to 418920b3fb, which started
diagnosing the legality of objects in OpenMP clauses (and caused some
test failures).
2024-10-09 14:22:34 -05:00

14 lines
327 B
Fortran

!RUN: %flang_fc1 -fopenmp -emit-fir -o - %s | FileCheck %s
!RUN: bbc -fopenmp -emit-fir -o - %s | FileCheck %s
!Allow POINTER variables in OpenMP SHARED clause. Check that this
!code compiles.
!CHECK-LABEL: func.func @_QPfoo
subroutine foo()
procedure(), pointer :: pf
!$omp parallel shared(pf)
!$omp end parallel
end