URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [c_loc_test.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-additional-sources c_loc_driver.c }module c_loc_testimplicit nonecontainssubroutine test0() bind(c)use, intrinsic :: iso_c_bindingimplicit noneinteger, target :: xtype(c_ptr) :: my_c_ptrinterfacesubroutine test_address(x, expected_value) bind(c)use, intrinsic :: iso_c_bindingtype(c_ptr), value :: xinteger(c_int), value :: expected_valueend subroutine test_addressend interfacex = 100my_c_ptr = c_loc(x)call test_address(my_c_ptr, 100)end subroutine test0end module c_loc_test! { dg-final { cleanup-modules "c_loc_test" } }
