2 ! { dg-additional-sources bind_c_vars_driver.c }
4 ! { dg-additional-options "-fcommon" { target hppa*-*-hpux* } }
5 use, intrinsic :: iso_c_binding
8 integer(c_int
), bind(c
) :: myF90Int
9 real(c_float
), bind(c
, name
="myF90Real") :: f90_real
13 bind(c
, name
="myVariable") :: c2
16 integer(c_int
), bind(c
, name
="myF90Array3D") :: A(18, 3:7, 10)
17 integer(c_int
), bind(c
, name
="myF90Array2D") :: B(3, 2)
21 subroutine changeF90Globals() bind(c
, name
='changeF90Globals')
24 myF90Int
= myF90Int
+ 1
26 f90_real
= f90_real
* 3.0;
34 A(5, 6, 3) = A(5, 6, 3) + 1
37 end subroutine changeF90Globals
39 end module bind_c_vars