HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
CONTAINS
Chapter 10 309
The third example is of a module that contains a module subprogram, which in turn contains
an internal subprogram.
MODULE one
CONTAINS
SUBROUTINE two(x) ! Module subprogram
CONTAINS
LOGICAL FUNCTION three(y) !Internal subprogram
END FUNCTION three
END SUBROUTINE two
END MODULE one
Related statements
SUBROUTINE and FUNCTION
Related concepts
For related information, see the following:
“Program units” on page 155
“Internal procedures” on page 167
“Module program unit” on page 190