Debian Codegraph @

gcc/testsuite/gfortran.dg/use_rename_10.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/92736
4 !
5 ! Contributed by Chinoune Mehdi
6 !
7 module m1
8 implicit none
9 integer, parameter :: i = 10
10 end module m1
11
12 module m2
13 use m1, only : i
14 implicit none
15 interface
16 module subroutine sb1()
17 end subroutine sb1
18 end interface
19 end module m2
20
21 submodule(m2) s1
22 use m1, only : i
23 implicit none
24 contains
25 module subroutine sb1
26 print *,"hello", i
27 end subroutine sb1
28 end submodule s1