From f2a51196aa33fca3ae19a02a601dfa190fe14d80 Mon Sep 17 00:00:00 2001 From: LKedward Date: Sat, 19 Sep 2020 11:28:45 +0100 Subject: Add: example package with single source program and module --- test/example_packages/program_with_module/app/main.f90 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/example_packages/program_with_module/app/main.f90 (limited to 'test/example_packages/program_with_module/app/main.f90') diff --git a/test/example_packages/program_with_module/app/main.f90 b/test/example_packages/program_with_module/app/main.f90 new file mode 100644 index 0000000..59441f0 --- /dev/null +++ b/test/example_packages/program_with_module/app/main.f90 @@ -0,0 +1,10 @@ +module greet_m + implicit none + character(*), parameter :: greeting = 'Hello, fpm!' +end module greet_m + +program program_with_module + use greet_m, only: greeting + implicit none + print *, greeting +end program program_with_module -- cgit v1.2.3