URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [allocatable_dummy_3.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! PR 28416: Check that allocatable dummies can be passed onwards as non-assumed! shape arg.program mainimplicit noneinteger, allocatable :: a(:)interfacesubroutine foo(v_out)integer, allocatable :: v_out(:)end subroutine fooend interfacecall foo(a)if (any(a /= [ 1, 2, 3 ])) call abort()end programsubroutine foo(v_out)implicit noneinteger, allocatable :: v_out(:)allocate(v_out(3))call bar(v_out, size(v_out))end subroutine foosubroutine bar(v, N)implicit noneinteger :: Ninteger :: v(N)integer :: ido i = 1, Nv(i) = iend doend subroutine bar
