[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / flang / test / Lower / OpenACC / acc-routine-named.f90
blob3bafbc441c34c40293560a9cb0e48120e2dab36d
1 ! This test checks lowering of OpenACC routine directive.
3 ! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s
4 ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s
6 module acc_routines
8 ! CHECK: acc.routine @acc_routine_1 func(@_QMacc_routinesPacc2)
9 ! CHECK: acc.routine @acc_routine_0 func(@_QMacc_routinesPacc1) seq
11 !$acc routine(acc1) seq
13 contains
15 subroutine acc1()
16 end subroutine
18 ! CHECK-LABEL: func.func @_QMacc_routinesPacc1() attributes {acc.routine_info = #acc.routine_info<[@acc_routine_0]>}
20 subroutine acc2()
21 !$acc routine(acc2)
22 end subroutine
24 ! CHECK-LABEL: func.func @_QMacc_routinesPacc2() attributes {acc.routine_info = #acc.routine_info<[@acc_routine_1]>}
26 end module