1 ! RUN: %flang_fc1 -fopenacc -fdebug-unparse %s | FileCheck %s
3 ! Test unparse does not crash with OpenACC directives.
18 !CHECK-LABEL: PROGRAM bug47659
19 !CHECK: !$ACC PARALLEL LOOP
25 integer :: gangNum
, gangDim
, gangStatic
27 !CHECK-LABEL: SUBROUTINE acc_loop
29 !$acc loop collapse(force: 2)
34 !CHECK: !$ACC LOOP COLLAPSE(FORCE:2_4)
40 ! CHECK: !$ACC LOOP GANG
42 !$acc loop gang(gangNum)
46 ! CHECK: !$ACC LOOP GANG(NUM:gangnum)
48 !$acc loop gang(num: gangNum)
52 ! CHECK: !$ACC LOOP GANG(NUM:gangnum)
54 !$acc loop gang(dim: gangDim)
58 ! CHECK: !$ACC LOOP GANG(DIM:gangdim)
60 !$acc loop gang(static:gangStatic)
64 ! CHECK: !$ACC LOOP GANG(STATIC:gangstatic)
66 !$acc loop gang(static:*)
70 ! CHECK: !$ACC LOOP GANG(STATIC:*)
72 !$acc loop gang(static:gangStatic, dim: gangDim)
76 ! CHECK: !$ACC LOOP GANG(STATIC:gangstatic,DIM:gangdim)
81 !$acc routine bind("routine1_")
82 ! CHECK: !$ACC ROUTINE BIND("routine1_")
86 !$acc routine(routine2) bind(routine2)
87 ! CHECK: !$ACC ROUTINE(routine2) BIND(routine2)