aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr86587.f90
blob: fb213352bb9806819c51b6cbbb841457e17ae267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! PR fortran/86587
! Code contirubted by Valentin Clement <valentin.clement at env dot ethz dot ch>
!
module mod1
   use iso_c_binding
   type, bind(c), private :: mytype
      integer(c_int) :: i1, i2
   end type
end module mod1

module mod2
  use iso_c_binding
  private
  type, bind(c) :: mytype
    integer(c_int) :: i1, i2
  end type
end module mod2