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