view gcc/testsuite/gfortran.dg/bind_c_usage_33.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do run }
! { dg-additional-sources bind_c_usage_33_c.c }
module m1
   implicit none
   contains
   subroutine odopen(unit)
      integer,intent(out) :: unit
      unit=8
   end subroutine
end module

module m2
   use iso_c_binding
   use m1
   implicit none
   contains
   subroutine c_odopen(unit) bind(c,name="odopen")
      integer(c_int),intent(out) :: unit
      call odopen(unit)
   end subroutine
end module