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