gcc/testsuite/gfortran.dg/coarray/submodule_1.f90
raw| 1 | !{ dg-do run } |
| 2 | !{ dg-additional-sources add_sources/submodule_1_sub.f90 } |
| 3 | |
| 4 | ! Separating the module and the submodule is needed to show the error. |
| 5 | ! Having all code pieces in one file does not show the error. |
| 6 | |
| 7 | module pr80235 |
| 8 | implicit none |
| 9 | |
| 10 | private |
| 11 | public :: test, var |
| 12 | |
| 13 | type T |
| 14 | integer :: v |
| 15 | end type T |
| 16 | |
| 17 | interface |
| 18 | |
| 19 | module subroutine test() |
| 20 | end subroutine |
| 21 | |
| 22 | end interface |
| 23 | |
| 24 | type(T) :: var[*] |
| 25 | |
| 26 | end module pr80235 |
| 27 | |
| 28 | |
| 29 |