URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [c_funloc_tests_5.f03] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Test that the arg checking for c_funloc verifies the procedures are! C interoperable.module c_funloc_tests_5use, intrinsic :: iso_c_binding, only: c_funloc, c_funptrcontainssubroutine sub0() bind(c)type(c_funptr) :: my_c_funptrmy_c_funptr = c_funloc(sub1) ! { dg-error "must be BIND.C." }my_c_funptr = c_funloc(func0) ! { dg-error "must be BIND.C." }end subroutine sub0subroutine sub1()end subroutine sub1function func0(desired_retval)use, intrinsic :: iso_c_binding, only: c_intinteger(c_int), value :: desired_retvalinteger(c_int) :: func0func0 = desired_retvalend function func0end module c_funloc_tests_5
