summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr93461.f90
blob: 3bef326172fb401f9789bf8e9787d5135f8da9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do compile }
! PR fortran/93461
module aModuleWithAnAllowedName
  interface
     module subroutine aShortName()
     end subroutine aShortName
  end interface
end module aModuleWithAnAllowedName

submodule (aModuleWithAnAllowedName) aSubmoduleWithAVeryVeryVeryLongButEntirelyLegalName
contains
  subroutine aShortName()
    call aSubroutineWithAVeryLongNameThatWillCauseAProblem()
    call aSubroutineWithAVeryLongNameThatWillCauseAProblemAlso()
  end subroutine aShortName
  
  subroutine aSubroutineWithAVeryLongNameThatWillCauseAProblem()
  end subroutine aSubroutineWithAVeryLongNameThatWillCauseAProblem

  subroutine aSubroutineWithAVeryLongNameThatWillCauseAProblemAlso()
  end subroutine aSubroutineWithAVeryLongNameThatWillCauseAProblemAlso  
end submodule aSubmoduleWithAVeryVeryVeryLongButEntirelyLegalName