brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 2cb4e1a Raw
28 lines · plain
1! RUN: %flang_fc1  -fopenmp-version=51 -fopenmp -fdebug-unparse %s 2>&1 | FileCheck %s2! RUN: %flang_fc1  -fopenmp-version=51 -fopenmp -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s --check-prefix="PARSE-TREE"3program main4  character(*), parameter :: message = "This is an error"5  !CHECK: !$OMP ERROR AT(COMPILATION) SEVERITY(WARNING) MESSAGE("some message here")6  !PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPUtilityConstruct -> OmpErrorDirective7  !PARSE-TREE: OmpClauseList -> OmpClause -> At -> OmpAtClause -> ActionTime = Compilation8  !PARSE-TREE: OmpClause -> Severity -> OmpSeverityClause -> Severity = Warning9  !PARSE-TREE:  OmpClause -> Message -> OmpMessageClause -> Expr = '"some message here"'10  !PARSE-TREE:  LiteralConstant -> CharLiteralConstant11  !PARSE-TREE:  string = 'some message here'12  !$omp error at(compilation) severity(warning) message("some message here")13  !CHECK: !$OMP ERROR AT(COMPILATION) SEVERITY(FATAL) MESSAGE("This is an error")14  !PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPUtilityConstruct -> OmpErrorDirective15  !PARSE-TREE: OmpClauseList -> OmpClause -> At -> OmpAtClause -> ActionTime = Compilation16  !PARSE-TREE: OmpClause -> Severity -> OmpSeverityClause -> Severity = Fatal17  !PARSE-TREE:  OmpClause -> Message -> OmpMessageClause -> Expr = '"This is an error"'18  !PARSE-TREE:  Designator -> DataRef -> Name = 'message'19  !$omp error at(compilation) severity(fatal) message(message)20  !CHECK: !$OMP ERROR AT(EXECUTION) SEVERITY(FATAL) MESSAGE("This is an error")21  !PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPUtilityConstruct -> OmpErrorDirective22  !PARSE-TREE: OmpClauseList -> OmpClause -> At -> OmpAtClause -> ActionTime = Execution23  !PARSE-TREE: OmpClause -> Severity -> OmpSeverityClause -> Severity = Fatal24  !PARSE-TREE:  OmpClause -> Message -> OmpMessageClause -> Expr = '"This is an error"'25  !PARSE-TREE:  Designator ->  DataRef -> Name = 'message'26  !$omp error at(EXECUTION) severity(fatal) message(message)27end program main28