URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intent_out_5.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! PR fortran/41479!! Contributed by Juergen Reuter.!program maintype :: container_tinteger :: n = 42! if the following line is omitted, the problem disappearsinteger, dimension(:), allocatable :: aend type container_ttype(container_t) :: containerif (container%n /= 42) call abort()if (allocated(container%a)) call abort()container%n = 1allocate(container%a(50))call init (container)if (container%n /= 42) call abort()if (allocated(container%a)) call abort()containssubroutine init (container)type(container_t), intent(out) :: containerend subroutine initend program main
