! RUN: %f18 -fdebug-pre-fir-tree -fparse-only -fopenacc %s | FileCheck %s ! Test structure of the Pre-FIR tree with OpenACC construct ! CHECK: Subroutine foo subroutine foo() ! CHECK-NEXT: <> ! CHECK-NEXT: <> !$acc parallel !$acc loop ! CHECK-NEXT: <> ! CHECK-NEXT: NonLabelDoStmt do i=1,5 ! CHECK-NEXT: PrintStmt print *, "hey" ! CHECK-NEXT: <> ! CHECK-NEXT: NonLabelDoStmt do j=1,5 ! CHECK-NEXT: PrintStmt print *, "hello", i, j ! CHECK-NEXT: EndDoStmt ! CHECK-NEXT: <> end do ! CHECK-NEXT: EndDoStmt ! CHECK-NEXT: <> end do !$acc end parallel ! CHECK-NEXT: <> ! CHECK-NEXT: <> ! CHECK-NEXT: ContinueStmt end subroutine ! CHECK-NEXT: EndSubroutine foo ! CHECK: Subroutine foo subroutine foo2() ! CHECK-NEXT: <> !$acc parallel loop ! CHECK-NEXT: <> ! CHECK-NEXT: NonLabelDoStmt do i=1,5 ! CHECK-NEXT: EndDoStmt ! CHECK-NEXT: <> end do !$acc end parallel loop ! CHECK-NEXT: <> ! CHECK-NEXT: ContinueStmt end subroutine ! CHECK-NEXT: EndSubroutine foo2