diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pointer_assign_4.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pointer_assign_4.f90 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/testsuite/gfortran.dg/pointer_assign_4.f90 b/gcc/testsuite/gfortran.dg/pointer_assign_4.f90 index faf7c776c59..ed3dd856af2 100644 --- a/gcc/testsuite/gfortran.dg/pointer_assign_4.f90 +++ b/gcc/testsuite/gfortran.dg/pointer_assign_4.f90 @@ -15,22 +15,22 @@ program prog p => a p2 => p if((lbound(p, dim=1) /= -10) .or. (ubound(p, dim=1) /= 10)) & - call abort() + STOP 1 if((lbound(p2,dim=1) /= -10) .or. (ubound(p2,dim=1) /= 10)) & - call abort() + STOP 2 do i = -10, 10 - if(p(i) /= real(i)) call abort() - if(p2(i) /= real(i)) call abort() + if(p(i) /= real(i)) STOP 3 + if(p2(i) /= real(i)) STOP 4 end do p => a(:) p2 => p if((lbound(p, dim=1) /= 1) .or. (ubound(p, dim=1) /= 21)) & - call abort() + STOP 5 if((lbound(p2,dim=1) /= 1) .or. (ubound(p2,dim=1) /= 21)) & - call abort() + STOP 6 p2 => p(:) if((lbound(p2,dim=1) /= 1) .or. (ubound(p2,dim=1) /= 21)) & - call abort() + STOP 7 call multdim() contains subroutine multdim() @@ -49,11 +49,11 @@ contains if((lbound(ptr,dim=1) /= -5) .or. (ubound(ptr,dim=1) /= 5) .or. & (lbound(ptr,dim=2) /= 10) .or. (ubound(ptr,dim=2) /= 20) .or. & (lbound(ptr,dim=3) /= 0) .or. (ubound(ptr,dim=3) /= 3)) & - call abort() + STOP 8 do i = 0, 3 do j = 10, 20 do k = -5, 5 - if(ptr(k,j,i) /= real(i+10*j+100*k)) call abort() + if(ptr(k,j,i) /= real(i+10*j+100*k)) STOP 9 end do end do end do @@ -61,6 +61,6 @@ contains if((lbound(ptr,dim=1) /= 1) .or. (ubound(ptr,dim=1) /= 11) .or. & (lbound(ptr,dim=2) /= 1) .or. (ubound(ptr,dim=2) /= 11) .or. & (lbound(ptr,dim=3) /= 1) .or. (ubound(ptr,dim=3) /= 4)) & - call abort() + STOP 10 end subroutine multdim end program prog |