chap10/sample1a.f90
1module a
2 use b
3 implicit none
4
5contains
6 subroutine a_sub()
7 implicit none
8
9 call b_sub()
10 write(*, *) 'a_sub in module a is called'
11 endsubroutine a_sub
12endmodule a
1module a
2 use b
3 implicit none
4
5contains
6 subroutine a_sub()
7 implicit none
8
9 call b_sub()
10 write(*, *) 'a_sub in module a is called'
11 endsubroutine a_sub
12endmodule a