1 ! RUN: %flang_fc1 -fdebug-pre-fir-tree -fopenacc %s | FileCheck %s
3 ! Test structure of the Pre-FIR tree with OpenACC construct
5 ! CHECK: Subroutine foo
7 ! CHECK-NEXT: <<OpenACCConstruct>>
8 ! CHECK-NEXT: <<OpenACCConstruct>>
11 ! CHECK-NEXT: <<DoConstruct>>
12 ! CHECK-NEXT: NonLabelDoStmt
14 ! CHECK-NEXT: PrintStmt
16 ! CHECK-NEXT: <<DoConstruct>>
17 ! CHECK-NEXT: NonLabelDoStmt
19 ! CHECK-NEXT: PrintStmt
20 print *, "hello", i
, j
21 ! CHECK-NEXT: EndDoStmt
22 ! CHECK-NEXT: <<End DoConstruct>>
24 ! CHECK-NEXT: EndDoStmt
25 ! CHECK-NEXT: <<End DoConstruct>>
27 ! CHECK-NEXT: ContinueStmt
29 ! CHECK-NEXT: <<End OpenACCConstruct>>
30 ! CHECK-NEXT: <<End OpenACCConstruct>>
31 ! CHECK-NEXT: EndSubroutineStmt
33 ! CHECK-NEXT: End Subroutine foo
35 ! CHECK: Subroutine foo2
37 ! CHECK-NEXT: <<OpenACCConstruct>>
39 ! CHECK-NEXT: <<DoConstruct>>
40 ! CHECK-NEXT: NonLabelDoStmt
42 ! CHECK-NEXT: EndDoStmt
43 ! CHECK-NEXT: <<End DoConstruct>>
45 ! CHECK-NEXT: ContinueStmt
46 !$acc end parallel loop
47 ! CHECK-NEXT: <<End OpenACCConstruct>>
48 ! CHECK-NEXT: EndSubroutineStmt
50 ! CHECK-NEXT: End Subroutine foo2