URL
                    https://opencores.org/ocsvn/openrisc/openrisc/trunk
                
            Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray/] [poly_run_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! Test for polymorphic coarrays!type tend type tclass(t), allocatable :: A[:,:]allocate (A[1:4,-5:*])if (allocated(A)) stopif (any (lcobound(A) /= [1, -5])) call abort ()if (num_images() == 1) thenif (any (ucobound(A) /= [4, -5])) call abort ()elseif (ucobound(A,dim=1) /= 4) call abort ()end ifif (allocated(A)) i = 5call s(A)call st(A)containssubroutine s(x)class(t) :: x[4,2:*]if (any (lcobound(x) /= [1, 2])) call abort ()if (num_images() == 1) thenif (any (ucobound(x) /= [4, 2])) call abort ()elseif (ucobound(x,dim=1) /= 4) call abort ()end ifend subroutine ssubroutine st(x)class(t) :: x[:,:]if (any (lcobound(x) /= [1, -5])) call abort ()if (num_images() == 1) thenif (any (ucobound(x) /= [4, -5])) call abort ()elseif (ucobound(x,dim=1) /= 4) call abort ()end ifend subroutine stend
