Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / fcdemo / fprogram.f90
1
2 ! This program is free software; you can redistribute it and/or
3 ! modify it under the terms of the GNU General Public License
4 ! as published by the Free Software Foundation; either version 2
5 ! of the License, or (at your option) any later version.
6
7 program fprogram
8   implicit none
9   integer arg,res
10
11   write(*,*) 'Welcome to GNU libtool Fortran demo!'
12   write(*,*) 'Real programmers write in FORTRAN.'
13   arg=2
14
15   call fsub(arg,res)
16
17   write(*,*) 'fsub returned, saying that 2 *',arg,' =',res
18
19   if (res.eq.4) then
20      write(*,*) 'fsub is ok!'
21   endif
22
23   call fsub3(arg,res)
24
25   write(*,*) 'fsub3 returned, saying that 4 *',arg,' =',res
26
27   if (res.eq.8) then
28      write(*,*) 'fsub3 is ok!'
29   endif
30
31   stop
32 end