1 ! This test checks correct lowering when OpenACC routine directive is placed
2 ! before implicit none.
4 ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s
15 program test_acc_routine
18 !$acc routine(sub2) seq
30 ! CHECK: acc.routine @acc_routine_1 func(@_QFPsub2) seq
31 ! CHECK: acc.routine @acc_routine_0 func(@_QMdummy_modPsub1) seq
32 ! CHECK: func.func @_QMdummy_modPsub1(%arg0: !fir.ref<i32> {fir.bindc_name = "i"}) attributes {acc.routine_info = #acc.routine_info<[@acc_routine_0]>}
33 ! CHECK: func.func @_QQmain() attributes {fir.bindc_name = "test_acc_routine"}
34 ! CHECK: func.func private @_QFPsub2() attributes {acc.routine_info = #acc.routine_info<[@acc_routine_1]>, fir.host_symbol = @_QQmain, llvm.linkage = #llvm.linkage<internal>}