mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
de837934d8
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15336 a95241bf-73f2-0310-859d-f6bbb57e9c96
28 lines
640 B
Fortran
28 lines
640 B
Fortran
C
|
|
C This program is free software; you can redistribute it and/or
|
|
C modify it under the terms of the GNU General Public License
|
|
C as published by the Free Software Foundation; either version 2
|
|
C of the License, or (at your option) any later version.
|
|
C
|
|
|
|
program fprogram
|
|
implicit none
|
|
integer*4 arg,res
|
|
|
|
write(*,*) 'Welcome to GNU libtool Fortran demo!'
|
|
write(*,*) 'Real programmers write in FORTRAN.'
|
|
arg=2
|
|
|
|
call fsub(arg,res)
|
|
|
|
write(*,*) 'fsub returned, saying that 2 *',arg,' =',res
|
|
|
|
if (res.eq.4) then
|
|
write(*,*) 'fsub is ok!'
|
|
endif
|
|
|
|
stop
|
|
end
|
|
|
|
|