summaryrefslogtreecommitdiffstats
path: root/Tests/FortranModules/Submodules/greatgrandchild.f90
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-19 15:26:06 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-20 14:57:32 (GMT)
commitb1f95e5b1477794c0ee3a56a4ea016a34c3e3d5c (patch)
tree715af1b794f404479f96a5932d2d1ea9b0187490 /Tests/FortranModules/Submodules/greatgrandchild.f90
parent402735314ec7fe48ec21e5f4c5b19b6f17682c54 (diff)
downloadCMake-b1f95e5b1477794c0ee3a56a4ea016a34c3e3d5c.zip
CMake-b1f95e5b1477794c0ee3a56a4ea016a34c3e3d5c.tar.gz
CMake-b1f95e5b1477794c0ee3a56a4ea016a34c3e3d5c.tar.bz2
Fortran: Extend submodule test with great-grandchild
Name the module using CamelCase to test lower-case file name conversion. Also add coverage of existing "sibling" module.
Diffstat (limited to 'Tests/FortranModules/Submodules/greatgrandchild.f90')
-rw-r--r--Tests/FortranModules/Submodules/greatgrandchild.f908
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FortranModules/Submodules/greatgrandchild.f90 b/Tests/FortranModules/Submodules/greatgrandchild.f90
new file mode 100644
index 0000000..85404ea
--- /dev/null
+++ b/Tests/FortranModules/Submodules/greatgrandchild.f90
@@ -0,0 +1,8 @@
+! Test the notation for an Nth-generation descendant
+! for N>1, which necessitates the colon.
+submodule ( parent : grandchild ) GreatGrandChild
+contains
+ module subroutine GreatGrandChild_subroutine()
+ print *,"Test passed."
+ end subroutine
+end submodule GreatGrandChild