URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray/] [subobject_1.f90] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }!! PR fortran/50420! Coarray subobjects were not accepted as valid coarraysinteger :: iinteger, parameter :: la = 4, lb = 5, lc = 8integer, parameter :: init(la) = -4 + (/ (i, i=1,la) /)type tinteger :: iend type ttype t2type(t), allocatable :: a[:]end type t2type t3type(t), allocatable :: a(:)[:]end type t3type(t2) :: btype(t3) :: callocate(b%a[lb:*])b%a%i = 7if (b%a%i /= 7) call abortif (any (lcobound(b%a) /= (/ lb /))) call abortif (ucobound(b%a, dim=1) /= num_images() + lb - 1) call abortif (any (lcobound(b%a%i) /= (/ lb /))) call abortif (ucobound(b%a%i, dim=1) /= num_images() + lb - 1) call abortallocate(c%a(la)[lc:*])c%a%i = initif (any(c%a%i /= init)) call abortif (any (lcobound(c%a) /= (/ lc /))) call abortif (ucobound(c%a, dim=1) /= num_images() + lc - 1) call abortif (any (lcobound(c%a%i) /= (/ lc /))) call abortif (ucobound(c%a%i, dim=1) /= num_images() + lc - 1) call abortif (c%a(2)%i /= init(2)) call abortif (any (lcobound(c%a(2)) /= (/ lc /))) call abortif (ucobound(c%a(2), dim=1) /= num_images() + lc - 1) call abortif (any (lcobound(c%a(2)%i) /= (/ lc /))) call abortif (ucobound(c%a(2)%i, dim=1) /= num_images() + lc - 1) call abortdeallocate(b%a, c%a)end
Go to most recent revision | Compare with Previous | Blame | View Log
