summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03
blob: d6b4b6d617676ee803ec6b944e7d7b9a24ce356d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
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

! { dg-final { cleanup-modules "bind_c_implicit_vars" } }