URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [forall_4.f90] - Rev 303
Compare with Previous | Blame | View Log
! Program to test nested forallprogram forall2implicit noneinteger a(4,4,2)integer i, j, k, na(:,:,1) = reshape((/ 1, 2, 3, 4,&5, 6, 7, 8,&9,10,11,12,&13,14,15,16/), (/4,4/))a(:,:,2) = a(:,:,1) + 16n=4k=1! Mirror half the matrixforall (i=k:n)forall (j=1:5-i)a(i,j,:) = a(j,i,:)end forallend forallif (any (a(:,:,1) &.ne. reshape((/ 1, 5, 9,13,&2, 6,10, 8,&3, 7,11,12,&4,14,15,16/),(/4,4/)))) call abortif (any (a(:,:,2) .ne. a(:,:,1) + 16)) call abortend
