diff --git a/test/fc/src/CMakeLists.txt b/test/fc/src/CMakeLists.txt index f6a0177..e5d6b3d 100644 --- a/test/fc/src/CMakeLists.txt +++ b/test/fc/src/CMakeLists.txt @@ -1 +1 @@ -add_executable(example example.f90) +add_executable(example example.f90 module.f90) diff --git a/test/fc/src/example.f90 b/test/fc/src/example.f90 index 064acbc..27acbdf 100644 --- a/test/fc/src/example.f90 +++ b/test/fc/src/example.f90 @@ -1,4 +1,5 @@ program example + use foo, only: hello implicit none - print *, 'Hello World!' + call hello() end program diff --git a/test/fc/src/module.f90 b/test/fc/src/module.f90 new file mode 100644 index 0000000..3e108ac --- /dev/null +++ b/test/fc/src/module.f90 @@ -0,0 +1,7 @@ +module foo + implicit none +contains + subroutine hello() + print *, 'Hello World!' + end subroutine +end module