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

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

unix.superglobalmegacorp.com

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