From c14bfc6fa4e30b2a2af6cb7500bd7b7c16896472 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 5 Jul 2020 10:32:38 +0800 Subject: add fortran static library tests --- tests/projects/fortran/static_library/src/main.f90 | 5 +++++ tests/projects/fortran/static_library/src/test.f90 | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/projects/fortran/static_library/src/main.f90 create mode 100644 tests/projects/fortran/static_library/src/test.f90 (limited to 'tests/projects/fortran/static_library/src') diff --git a/tests/projects/fortran/static_library/src/main.f90 b/tests/projects/fortran/static_library/src/main.f90 new file mode 100644 index 000000000..9adea3e26 --- /dev/null +++ b/tests/projects/fortran/static_library/src/main.f90 @@ -0,0 +1,5 @@ +program hello + use test, only: print_hello + implicit none (type, external) + call print_hello() +end program hello diff --git a/tests/projects/fortran/static_library/src/test.f90 b/tests/projects/fortran/static_library/src/test.f90 new file mode 100644 index 000000000..b1e97a36c --- /dev/null +++ b/tests/projects/fortran/static_library/src/test.f90 @@ -0,0 +1,8 @@ +module test + implicit none (type, external) + +contains + subroutine print_hello() + print *, "Hello World!" + end subroutine print_hello +end module test -- cgit v1.3.1