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
7 !$omp parallel do lastprivate(x)
13 !UNPARSE: SUBROUTINE foo1
14 !UNPARSE: INTEGER x, i
16 !UNPARSE: !$OMP PARALLEL DO LASTPRIVATE(x)
17 !UNPARSE: DO i=1_4,100_4
20 !UNPARSE: END SUBROUTINE
22 !PARSE-TREE: SubroutineStmt
23 !PARSE-TREE: Name = 'foo1'
24 !PARSE-TREE: OmpLoopDirective -> llvm::omp::Directive = parallel do
25 !PARSE-TREE: OmpClauseList -> OmpClause -> Lastprivate -> OmpLastprivateClause
26 !PARSE-TREE: OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
27 !PARSE-TREE: EndSubroutineStmt
33 !$omp parallel do lastprivate(conditional: x)
39 !UNPARSE: SUBROUTINE foo2
40 !UNPARSE: INTEGER x, i
42 !UNPARSE: !$OMP PARALLEL DO LASTPRIVATE(CONDITIONAL: x)
43 !UNPARSE: DO i=1_4,100_4
46 !UNPARSE: END SUBROUTINE
48 !PARSE-TREE: SubroutineStmt
49 !PARSE-TREE: Name = 'foo2'
50 !PARSE-TREE: OmpLoopDirective -> llvm::omp::Directive = parallel do
51 !PARSE-TREE: OmpClauseList -> OmpClause -> Lastprivate -> OmpLastprivateClause
52 !PARSE-TREE: Modifier -> OmpLastprivateModifier -> Value = Conditional
53 !PARSE-TREE: OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
54 !PARSE-TREE: EndSubroutineStmt