parent
a5863477f8
commit
f3d0778403
3 changed files with 21 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
project('use in same file', 'fortran') |
||||
|
||||
e = executable('prog', 'prog.f90') |
||||
test('simple', e) |
@ -0,0 +1,15 @@ |
||||
MODULE Circle |
||||
REAL, PARAMETER :: Pi = 3.1415927 |
||||
REAL :: radius |
||||
INTERFACE DEFAULT |
||||
MODULE PROCEDURE func |
||||
END INTERFACE |
||||
CONTAINS |
||||
FUNCTION func() |
||||
func = 0 |
||||
END FUNCTION |
||||
END MODULE Circle |
||||
|
||||
PROGRAM PROG |
||||
print *, "Module procedure is working." |
||||
END PROGRAM PROG |
Loading…
Reference in new issue