File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.bin / f77 / f77pass1 / tst / t02.f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:07 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

c	subroutine tst2
	parameter(ntest=2)
c	Arithmetic on global integer variables
c	common /t2/ i,j,k,l,m
	i=1
	j=2
	k=3
	l=4
	m=10
	if( i+j .ne. k ) call e(1,ntest)
	if( i+k .ne. l ) call e(2,ntest)
	if( j-k .ne. -i ) call e(3,ntest)
	if( j*(j+k) .ne. m ) call e(4,ntest)
	if( -m .ne. -(k+k+l) ) call e(5,ntest)
	if( i / i .ne. 1 ) call e(6,ntest)
	if( m*m / m .ne. m ) call e(7,ntest)
	if( 10*m .ne. 100 ) call e(8,ntest)
	if( m*(-10) .ne. -100 ) call e(9,ntest)
	if( j / k .ne. 0 ) call e(10,ntest)
	if( 100 / k .ne. 33 ) call e(11,ntest)
c	if( i+j*k+l+m mod j + 50 / k .ne. 27 ) call e(12,ntest)
	if( j*k*m / 6 .ne. 10 ) call e(13,ntest)
	if( (k.gt.4) .or. (k.ge.4) .or. (k.eq.4) ) call e(14,ntest)
	if( (m.lt.j) .or. (m.le.j) .or. (m.eq.j) ) call e(15,ntest)
	if( k .ne. i+j ) call e(16,ntest)
	if( j .lt. i ) call e(17,ntest)
	if( j .le. i ) call e(18,ntest)
	if( j .eq. i ) call e(19,ntest)
	if( j .ne. j ) call e(20,ntest)
	if( i .ge. j ) call e(21,ntest)
	if( i .gt. j ) call e(22,ntest)
	if( k**2 .ne. 9 ) call e(23,ntest)
	if( j**k .ne. 8 ) call e(24,ntest)
	end

unix.superglobalmegacorp.com

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