1 !RUN: %flang_fc1 -fdebug-unparse -fopenmp -fopenmp-version=50 %s | FileCheck --ignore-case --check-prefix="UNPARSE" %s
2 !RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp -fopenmp-version=50 %s | FileCheck --check-prefix="PARSE-TREE" %s
6 !$omp taskgroup task_reduction(+: x)
11 !UNPARSE: SUBROUTINE f00
13 !UNPARSE: !$OMP TASKGROUP TASK_REDUCTION(+: x)
15 !UNPARSE: !$OMP END TASKGROUP
16 !UNPARSE: END SUBROUTINE
18 !PARSE-TREE: OmpBeginBlockDirective
19 !PARSE-TREE: | OmpBlockDirective -> llvm::omp::Directive = taskgroup
20 !PARSE-TREE: | OmpClauseList -> OmpClause -> TaskReduction -> OmpTaskReductionClause
21 !PARSE-TREE: | | Modifier -> OmpReductionIdentifier -> DefinedOperator -> IntrinsicOperator = Add
22 !PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'