1 ! Have to enable optimizations, as otherwise builtins won't be expanded.
2 ! { dg-additional-options "-O -fdump-rtl-expand -fno-openacc" }
7 integer, parameter :: acc_device_kind
= 4
9 end module openacc_kinds
15 integer (acc_device_kind
), parameter :: acc_device_host
= 2
18 function acc_on_device (dev
)
20 logical (4) :: acc_on_device
21 integer (acc_device_kind
), intent (in
) :: dev
22 end function acc_on_device
26 logical (4) function f ()
30 integer (4), parameter :: dev
= 2
32 f
= acc_on_device (dev
)
36 ! Without -fopenacc, we're expecting one call.
37 ! { dg-final { scan-rtl-dump-times "\\\(call \[^\\n\]*\\\"acc_on_device" 1 "expand" } }
39 ! { dg-final { cleanup-rtl-dump "expand" } }