2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr42119.f90
blobf848e9e9f60eba13482c04314b06d16ef6e4b607
1 ! { dg-do compile }
3 module Test
4 use ISO_C_BINDING
6 contains
8 subroutine Callback(arg) bind(C)
9 integer(C_INT) :: arg
10 end subroutine Callback
12 subroutine Check(proc)
13 type(C_FUNPTR) :: proc
14 end subroutine Check
16 end module Test
19 program Main
20 use Test
21 type(C_FUNPTR) :: proc
23 call Check(C_FUNLOC(Callback))
24 end program Main