URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [alloc_comp_basics_2.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! Check "double" allocations of allocatable components (PR 20541).!! Contributed by Erik Edelmann <eedelmann@gcc.gnu.org>! and Paul Thomas <pault@gcc.gnu.org>!program mainimplicit nonetype foointeger, dimension(:), allocatable :: arrayend type footype(foo),allocatable,dimension(:) :: moltype(foo),pointer,dimension(:) :: molpinteger :: iallocate (mol(1))allocate (mol(1), stat=i)!print *, i ! /= 0if (i == 0) call abort()allocate (mol(1)%array(5))allocate (mol(1)%array(5),stat=i)!print *, i ! /= 0if (i == 0) call abort()allocate (molp(1))allocate (molp(1), stat=i)!print *, i ! == 0if (i /= 0) call abort()allocate (molp(1)%array(5))allocate (molp(1)%array(5),stat=i)!print *, i ! /= 0if (i == 0) call abort()end program main
