c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_funloc_tests.f03
blob823c5e39d2a963ec583de4d6e785cae92935a5d8
1 ! { dg-do run }
2 ! This test case simply checks that c_funloc exists, accepts arguments of 
3 ! flavor FL_PROCEDURE, and returns the type c_funptr
4 module c_funloc_tests
5   use, intrinsic :: iso_c_binding, only: c_funptr, c_funloc
7 contains
8   recursive subroutine sub0() bind(c)
9     type(c_funptr) :: my_c_funptr
11     my_c_funptr = c_funloc(sub0)
12   end subroutine sub0
13 end module c_funloc_tests
15 program driver
16   use c_funloc_tests
17   
18   call sub0()
19 end program driver