20 lines · plain
1!RUN: %flang_fc1 -fdebug-unparse -fopenmp -fopenmp-version=60 %s | FileCheck %s --check-prefix=UNPARSE2!RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp -fopenmp-version=60 %s | FileCheck %s --check-prefix=PARSE-TREE3 4program automap5 integer :: x6 !$omp declare target enter(automap: x)7end program8 9!UNPARSE: PROGRAM AUTOMAP10!UNPARSE: INTEGER x11!UNPARSE: !$OMP DECLARE_TARGET ENTER(AUTOMAP: x)12!UNPARSE: END PROGRAM13 14!PARSE-TREE: DeclarationConstruct -> SpecificationConstruct -> OpenMPDeclarativeConstruct -> OpenMPDeclareTargetConstruct -> OmpDirectiveSpecification15!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = declare target16!PARSE-TREE: | OmpClauseList -> OmpClause -> Enter -> OmpEnterClause17!PARSE-TREE: | | Modifier -> OmpAutomapModifier -> Value = Automap18!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'19!PARSE-TREE: | Flags = {}20