Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
! RUN: %f18 -fdebug-pre-fir-tree -fparse-only -fopenmp %s | FileCheck %s
! Test Pre-FIR Tree captures OpenMP related constructs
! CHECK: Program test_omp
program test_omp
! CHECK: PrintStmt
print *, "sequential"
! CHECK: <<OpenMPConstruct>>
!$omp parallel
print *, "in omp //"
!$omp do
! CHECK: <<DoConstruct>>
! CHECK: LabelDoStmt
do i=1,100
print *, "in omp do"
! CHECK: EndDoStmt
end do
! CHECK: <<End DoConstruct>>
! CHECK: OmpEndLoopDirective
!$omp end do
! CHECK: <<End OpenMPConstruct>>
print *, "not in omp do"
! CHECK-NOT: OmpEndLoopDirective
print *, "no in omp do"
!$omp end parallel
print *, "sequential again"
!$omp task
print *, "in task"
!$omp end task
end program