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/] [impure_spec_expr_1.f90] - Rev 327
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
! Checks the fix for PR33664, in which the apparent function reference
! n(1) caused a seg-fault.
!
! Contributed by Henrik Holst <holst@matmech.com>
!
module test
contains
subroutine func_1(u,n)
integer :: n
integer :: u(n(1)) ! { dg-error "must be PURE" }
end subroutine
end module test
! { dg-final { cleanup-modules "test" } }
Go to most recent revision | Compare with Previous | Blame | View Log