| 1 |
module parent |
| 2 |
implicit none |
| 3 |
|
| 4 |
interface |
| 5 |
|
| 6 |
! Test Fortran 2008 "module function" syntax |
| 7 |
module function child_function() result(child_stuff) |
| 8 |
logical :: child_stuff |
| 9 |
end function |
| 10 |
module function sibling_function() result(sibling_stuff) |
| 11 |
logical :: sibling_stuff |
| 12 |
end function |
| 13 |
|
| 14 |
! Test Fortran 2008 "module subroutine" syntax |
| 15 |
module subroutine grandchild_subroutine() |
| 16 |
end subroutine |
| 17 |
module subroutine GreatGrandChild_subroutine() |
| 18 |
end subroutine |
| 19 |
|
| 20 |
end interface |
| 21 |
|
| 22 |
end module parent |