Debian Codegraph @

libgomp/testsuite/libgomp.fortran/declare-variant-2.f90

raw
1 ! { dg-do run }
2 ! { dg-additional-sources declare-variant-2-aux.f90 }
3 ! { dg-additional-options "-fdump-tree-gimple" }
4
5 module my_mod
6 use iso_c_binding, only: c_ptr
7 implicit none
8 interface
9 subroutine base_proc (a)
10 use iso_c_binding, only: c_ptr
11 type(c_ptr), intent(inout) :: a
12 end subroutine
13 end interface
14
15 contains
16 subroutine variant_proc (a)
17 type(c_ptr), intent(inout) :: a
18 !$omp declare variant (base_proc) match (construct={dispatch}) adjust_args(need_device_ptr: a)
19 end subroutine
20 end module
21
22 ! { dg-final { scan-tree-dump "variant_proc \\(&a\\)" "gimple" { xfail *-*-* } } }