Annotation of cci/usr/src/usr.bin/f77/f77pass1/tst/t15.f, revision 1.1.1.1

1.1       root        1: c      subroutine tst15
                      2:        parameter(ntest=15)
                      3: c      Functions
                      4: 
                      5:        integer twice
                      6:        i=1
                      7:        j=2
                      8:        k=3
                      9:        l=4
                     10:        m=10
                     11:        if ( twice(k) .ne. m-l ) call e(1,ntest)
                     12:        if ( twice(1) .ne. 2 ) call e(2,ntest)
                     13:        if ( twice(k+1) .ne. twice(l) ) call e(3,ntest)
                     14:        if ( twice(twice(twice(inc(twice(inc(3)))))) .ne. 72 ) call e(4,ntest)
                     15:        if ( twice(inc(j+twice(inc(twice(i+1+inc(k)+inc(k))+twice(2))))).ne.106) call e(5,ntest)
                     16:        if ( twice(1) + twice(2) * twice(3) .ne. 26 ) call e(6,ntest)
                     17:        if ( 3 .ne. 0 + twice(1) + 1 ) call e(7,ntest)
                     18:        if ( 0 .ne. 0 * twice(m) ) call e(8,ntest)
                     19:        end
                     20: 
                     21:        integer function twice(k)
                     22:        twice = 2*k
                     23:        end
                     24:        integer function inc(k)
                     25:        inc = k+1
                     26:        end

unix.superglobalmegacorp.com

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