Files
clang-p2996/flang/test/Semantics/OpenMP/depobj-construct-v51.f90
Krzysztof Parzyszek c478aab684 [flang][OpenMP] Parser support for DEPOBJ plus DEPEND, DESTROY, UPDATE (#114074)
Parse the DEPOBJ construct and the associated clauses, perform basic
semantic checks.
2024-10-30 08:36:08 -05:00

14 lines
424 B
Fortran

!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=51
subroutine f04
integer :: obj
!ERROR: An UPDATE clause on a DEPOBJ construct must not have SOURCE, SINK or DEPOBJ as dependence-type
!$omp depobj(obj) update(source)
end
subroutine f05
integer :: obj
!ERROR: An UPDATE clause on a DEPOBJ construct must not have SOURCE, SINK or DEPOBJ as dependence-type
!$omp depobj(obj) update(depobj)
end