Skip to content

Add test for functionStatement calling a procedure #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
uNouss opened this issue Jan 31, 2025 · 0 comments
Open

Add test for functionStatement calling a procedure #2

uNouss opened this issue Jan 31, 2025 · 0 comments

Comments

@uNouss
Copy link
Contributor

uNouss commented Jan 31, 2025

       PROGRAM main
       f(x) = fct(3.0, x)
       print*, f(2.0)
       END

become

program main
       use :: fct_mod
       implicit none
       print *, f(2.0)
contains
       real function f(x)
           real, intent(in) :: x
           f = fct(3.0, x)
       end function f 
end program main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant