5 integer function foo ()
6 !$omp declare target to (foo) indirect
10 integer function bar ()
11 !$omp declare target to (bar) indirect
15 integer function baz ()
16 !$omp declare target to (baz) indirect
25 integer :: x
, expected
26 procedure (foo
), pointer :: foo_ptr
, bar_ptr
, baz_ptr
32 expected
= foo () + bar () + baz ()
34 !$omp target map (to: foo_ptr, bar_ptr, baz_ptr) map (from: x)
35 x
= foo_ptr () + bar_ptr () + baz_ptr ()