URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [forall_3.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! PR fortran/15080! Really test forall with temporaryprogram evil_forallimplicit nonetype tlogical validinteger :: sinteger, dimension(:), pointer :: pend typetype (t), dimension (5) :: vinteger iallocate (v(1)%p(2))allocate (v(2)%p(8))v(3)%p => NULL()allocate (v(4)%p(8))allocate (v(5)%p(2))v(:)%valid = (/.true., .true., .false., .true., .true./)v(:)%s = (/1, 8, 999, 6, 2/)v(1)%p(:) = (/9, 10/)v(2)%p(:) = (/1, 2, 3, 4, 5, 6, 7, 8/)v(4)%p(:) = (/13, 14, 15, 16, 17, 18, 19, 20/)v(5)%p(:) = (/11, 12/)forall (i=1:5,v(i)%valid)v(i)%p(1:v(i)%s) = v(6-i)%p(1:v(i)%s)end forallif (any(v(1)%p(:) .ne. (/11, 10/))) call abortif (any(v(2)%p(:) .ne. (/13, 14, 15, 16, 17, 18, 19, 20/))) call abortif (any(v(4)%p(:) .ne. (/1, 2, 3, 4, 5, 6, 19, 20/))) call abortif (any(v(5)%p(:) .ne. (/9, 10/))) call abort! I should really free the memory I've allocated.end program
Go to most recent revision | Compare with Previous | Blame | View Log
