view gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-Wc-binding-type" }
module bind_c_implicit_vars

bind(c) :: j ! { dg-warning "may not be C interoperable" }

contains
  subroutine sub0(i) bind(c) ! { dg-warning "may not be C interoperable" }
    i = 0
  end subroutine sub0
end module bind_c_implicit_vars