Files
CMake/Tests/FortranModules/Submodules/child.f90
Brad King ead16adfc8 Fortran: Fix module dependency scanning with upper-case SUBMODULE
The lexical token expression added by commit v3.7.0-rc1~73^2~1 (Fortran:
Add support for submodule syntax in dependency scanning, 2016-09-05)
has a typo and does not match upper-case `B` in `SUBMODULE`.  Fix it.

Fixes: #18595
2018-11-20 14:16:26 -05:00

11 lines
272 B
Fortran

! Test the notation for a 1st-generation direct
! descendant of a parent module
SUBMODULE ( parent ) child
implicit none
CONTAINS
module function child_function() result(child_stuff)
logical :: child_stuff
child_stuff=.true.
end function
END SUBMODULE child