Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/global_vars_c_init.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! { dg-additional-sources global_vars_c_init_driver.c } module global_vars_c_init use, intrinsic :: iso_c_binding, only: c_int implicit none integer(c_int), bind(c, name='i') :: I contains subroutine test_globals() bind(c) ! the value of I is initialized above if(I .ne. 2) then call abort() endif end subroutine test_globals end module global_vars_c_init