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/] [allocatable_dummy_2.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Check a few constraints for ALLOCATABLE dummy arguments.program alloc_dummyimplicit noneinteger :: a(5)call init(a) ! { dg-error "must be ALLOCATABLE" }containssubroutine init(x)integer, allocatable, intent(out) :: x(:)end subroutine initsubroutine init2(x)integer, allocatable, intent(in) :: x(:)allocate(x(3)) ! { dg-error "Cannot allocate" }end subroutine init2subroutine kill(x)integer, allocatable, intent(in) :: x(:)deallocate(x) ! { dg-error "Cannot deallocate" }end subroutine killend program alloc_dummy
