|
|
Power 6/32 Unix version 1.21
c subroutine tst16 parameter(ntest=16) c Statement functions integer twice twice(k) = 2*k inc(k) = k+1 i=1 j=2 k=3 l=4 m=10 if ( twice(k) .ne. m-l ) call e(1,ntest) if ( twice(1) .ne. 2 ) call e(2,ntest) if ( twice(k+1) .ne. twice(l) ) call e(3,ntest) if ( twice(twice(twice(inc(twice(inc(3)))))) .ne. 72 ) call e(4,ntest) if ( twice(inc(j+twice(inc(twice(i+1+inc(k)+inc(k))+twice(2))))).ne.106) call e(5,ntest) if ( twice(1) + twice(2) * twice(3) .ne. 26 ) call e(6,ntest) if ( 3 .ne. 0 + twice(1) + 1 ) call e(7,ntest) if ( 0 .ne. 0 * twice(m) ) call e(8,ntest) end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.