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

1.1       root        1: c      subroutine tst6
                      2:        parameter(ntest=6)
                      3: c      Global arrays
                      4: c      common /t6/ a1,a2,a3,a4,a5,a6
                      5:        parameter(eps = 2.0e-7)
                      6:        integer yellow,blue
                      7:        parameter(yellow=2,blue=3)
                      8:        integer a1(-10:+10)
                      9:        real a2(1939:1945)
                     10:        logical a3(3)
                     11:        double precision a4(2)
                     12:        integer a5(50:52,2,0:1,1939:1945)
                     13:        character*1 a6(0:10,0:3,0:3)
                     14: 
                     15:        do 1 i= -10 , 10
                     16: 1      a1(i) = i*i
                     17:        if ( (a1(-10).ne.100) .or. (a1(9).ne.81) ) call e(1,ntest)
                     18: 
                     19:        do 2 i=1939 , 1945
                     20: 2      a2(i)=i-1938.5
                     21:        if ( (abs(a2(1939)-0.5) .gt. eps) .or. (abs(a2(1945)-6.5) .gt. eps) ) call e(2,ntest)
                     22: 
                     23:        a3(blue) = .true.
                     24:        a3(yellow) = .true.
                     25:        if ( (a3(blue).ne..true.) .or. (a3(yellow).ne..true.) ) call e(3,ntest)
                     26:        a3(blue) = .false.
                     27:        a3(yellow) = .false.
                     28:        if ( (a3(blue).ne..false.) .or. (a3(yellow).ne..false.) ) call e(4,ntest)
                     29: 
                     30:        a4(1)=1.5
                     31:        a4(2)=.001
                     32:        if ( (a4(1) .ne. 1.5) .or. (a4(2).ne..001 ) ) call e(5,ntest)
                     33: 
                     34:        do 3 i=1939 , 1945
                     35: 3      a5(51,2,0,i)=300+i
                     36:        if ( a5(51,2,0,1940) .ne. 2240 ) call e(6,ntest)
                     37:        do 4 i=50 , 52
                     38: 4      a5(i,1,1,1943)=200+i
                     39:        if ( (a5(50,1,1,1943) .ne. 250) .or. (a5(52,1,1,1943) .ne. 252) ) call e(7,ntest)
                     40: 
                     41:        do 5 i= -10 , 10
                     42: 5      a1(i)= 0
                     43:        do 6 i= 0 , 10
                     44: 6      a1(i / 2 + i / 2)= i+1
                     45:        if ((a1(0).ne.2) .or. (a1(5).ne.0) .or. (a1(8).ne.10) ) call e(8,ntest)
                     46: 
                     47:        do 7 i= 0 , 10
                     48:        do 7 j= 0 , 3
                     49:        do 7 k= 0 , 3
                     50:        if ( ( (i+j+k) / 2) * 2 .eq. i+j+k ) then
                     51:        a6(i,j,k)='e'
                     52:        else
                     53:        a6(i,j,k)='o'
                     54:        endif
                     55: 7      continue
                     56:        if ( (a6(2,2,2).ne.'e') .or. (a6(2,2,3).ne.'o') .or. (a6(0,3,1).ne.'e') ) call e(9,ntest)
                     57:        end

unix.superglobalmegacorp.com

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