URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [bind_c_vars.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-additional-sources bind_c_vars_driver.c }module bind_c_varsuse, intrinsic :: iso_c_bindingimplicit noneinteger(c_int), bind(c) :: myF90Intreal(c_float), bind(c, name="myF90Real") :: f90_realinteger(c_int) :: c2integer(c_int) :: c3integer(c_int) :: c4bind(c, name="myVariable") :: c2bind(c) c3, c4integer(c_int), bind(c, name="myF90Array3D") :: A(18, 3:7, 10)integer(c_int), bind(c, name="myF90Array2D") :: B(3, 2)containssubroutine changeF90Globals() bind(c, name='changeF90Globals')implicit none! should make it 2myF90Int = myF90Int + 1! should make it 3.0f90_real = f90_real * 3.0;! should make it 4c2 = c2 * 2;! should make it 6c3 = c3 + 3;! should make it 2c4 = c4 / 2;! should make it 2A(5, 6, 3) = A(5, 6, 3) + 1! should make it 3B(3, 2) = B(3, 2) + 1end subroutine changeF90Globalsend module bind_c_vars! { dg-final { cleanup-modules "bind_c_vars" } }
