File:  [CSRG BSD Unix] / 43BSDTahoe / usr.bin / f77 / testf77 / tests / fs053.f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

c
c     comment section
c
c     fs053
c
c          fs053 is a subroutine subprogram which is called by the main
c     program fm050.  five integer variable arguments are passed and
c     several return statements are specified.  the subroutine fs053
c     adds together the values of the first one, two or three arguments
c     depending on the value of the fifth argument.  the resulting sum
c     is then returned to the calling program fm050 through the fourth
c     argument.
c
c      references
c        american national standard programming language fortran,
c              x3.9-1978
c
c        section 15.6, subroutines
c        section 15.8, return statement
c
c     test section
c
c         subroutine subprogram - several arguments, several returns
c
      subroutine fs053 (ivon01,ivon02,ivon03,ivon04,ivon05)
      go to (10,20,30),ivon05
10    ivon04 = ivon01
      return
20    ivon04 = ivon01 + ivon02
      return
30    ivon04 = ivon01 + ivon02 + ivon03
      return
      end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.