Debian Codegraph @

loki/jit_build/tests/base.f90

raw
1 module base
2
3 implicit none
4
5 save
6
7 ! TODO: Using this in this module causes issues in f90wrap,
8 ! so we leave it here for other modules to use, but don't
9 ! use it in this module itself.
10 integer, parameter :: jprb = selected_real_kind(13,300)
11
12 real(kind=8) :: a, b
13 integer :: i, j
14
15 contains
16
17 function a_plus_b()
18 ! Test to verify module-level variables work
19 real(kind=8) :: a_plus_b
20 a_plus_b = a + b
21 end function a_plus_b
22
23 function a_times_b_plus_c(a, b, c)
24 ! Simple test to verify that module functions work
25 real(kind=8) :: a_times_b_plus_c
26 real(kind=8), intent(in) :: a, b, c
27 a_times_b_plus_c = a * b + c
28 end function a_times_b_plus_c
29
30 end module base