diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-03-03 20:40:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 20:40:34 -0800 |
commit | 8e6fd427508e10999349c7e08c53a3d34bcea143 (patch) | |
tree | c035acf8a4d71e9201dc7394a43bc0dcef28ac83 /test | |
parent | 45cc57a901594eaa94535659e2aafe9971a24c00 (diff) | |
parent | a145a9fc1e7dffbacbb7151fa543267a86e90cde (diff) | |
download | fpm-8e6fd427508e10999349c7e08c53a3d34bcea143.tar.gz fpm-8e6fd427508e10999349c7e08c53a3d34bcea143.zip |
Merge pull request #41 from certik/call
Test calling GFortran from Haskell
Diffstat (limited to 'test')
-rw-r--r-- | test/Spec.hs | 6 | ||||
-rw-r--r-- | test/test1.f90 | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/Spec.hs b/test/Spec.hs index cd4753f..1c9fc48 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -1,2 +1,6 @@ +import Lib (someFunc, someFunc2) + main :: IO () -main = putStrLn "Test suite not yet implemented" +main = do + someFunc + someFunc2 diff --git a/test/test1.f90 b/test/test1.f90 new file mode 100644 index 0000000..f577b58 --- /dev/null +++ b/test/test1.f90 @@ -0,0 +1,8 @@ +program test1 +implicit none +integer :: i +i = 5+5 +print *, i +print *, "Fortran test code executed" +print *, "TESTS PASSED" +end program |