diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2020-09-19 11:28:45 +0100 |
---|---|---|
committer | LKedward <laurence.kedward@bristol.ac.uk> | 2020-09-19 11:28:45 +0100 |
commit | f2a51196aa33fca3ae19a02a601dfa190fe14d80 (patch) | |
tree | d7b89a7a7edf0dbdc86666f9987e2f145f55b7e5 /test/example_packages/program_with_module | |
parent | 5f7e4e5ec4fe10b7cca8aeaadb98ab376cdedfaf (diff) | |
download | fpm-f2a51196aa33fca3ae19a02a601dfa190fe14d80.tar.gz fpm-f2a51196aa33fca3ae19a02a601dfa190fe14d80.zip |
Add: example package with single source program and module
Diffstat (limited to 'test/example_packages/program_with_module')
-rw-r--r-- | test/example_packages/program_with_module/app/main.f90 | 10 | ||||
-rw-r--r-- | test/example_packages/program_with_module/fpm.toml | 1 |
2 files changed, 11 insertions, 0 deletions
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 diff --git a/test/example_packages/program_with_module/fpm.toml b/test/example_packages/program_with_module/fpm.toml new file mode 100644 index 0000000..bce6aa2 --- /dev/null +++ b/test/example_packages/program_with_module/fpm.toml @@ -0,0 +1 @@ +name = "Program_with_module" |