parent.f90 528 B

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