18 lines · plain
1! REQUIRES: openmp_runtime2! RUN: %flang_fc1 %openmp_flags -fdebug-dump-parse-tree -fopenmp -fopenmp-version=50 %s | FileCheck --ignore-case %s3! RUN: %flang_fc1 %openmp_flags -fdebug-unparse -fopenmp -fopenmp-version=50 %s | FileCheck --ignore-case --check-prefix="CHECK-UNPARSE" %s4 5!CHECK: OmpDirectiveName -> llvm::omp::Directive = task6!CHECK: OmpClauseList -> OmpClause -> Detach -> OmpDetachClause -> OmpObject -> Designator -> DataRef -> Name = 'event'7 8!CHECK-UNPARSE: INTEGER(KIND=8_4) event9!CHECK-UNPARSE: !$OMP TASK DETACH(event)10!CHECK-UNPARSE: !$OMP END TASK11subroutine task_detach12 use omp_lib13 implicit none14 integer(kind=omp_event_handle_kind) :: event15 !$omp task detach(event)16 !$omp end task17end subroutine18