URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [allocate_alloc_opt_10.f90] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }!! PR 43388: [F2008][OOP] ALLOCATE with MOLD=!! Contributed by Janus Weil <janus@gcc.gnu.org>type :: t1integer :: iend typetype,extends(t1) :: t2integer :: j = 4end typeclass(t1),allocatable :: x,ytype(t2) :: z!!! first example (static)z%j = 5allocate(x,MOLD=z)select type (x)type is (t2)print *,x%jif (x%j/=4) call abortx%j = 5class defaultcall abort()end select!!! second example (dynamic, PR 44541)allocate(y,MOLD=x)select type (y)type is (t2)print *,y%jif (y%j/=4) call abortclass defaultcall abort()end selectend
Go to most recent revision | Compare with Previous | Blame | View Log
