URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [proc_decl_21.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR fortran/39414: PROCEDURE statement double declaration bug
!
! Discovered by Paul Thomas <pault@gcc.gnu.org>
! Modified by Janus Weil <janus@gcc.gnu.org>
! forbidden
procedure(integer) :: a
integer :: a ! { dg-error "already has basic type of" }
integer :: b
procedure(integer) :: b ! { dg-error "already has basic type of" }
procedure(iabs) :: c
integer :: c ! { dg-error "may not have basic type of" }
integer :: d
procedure(iabs) :: d ! { dg-error "already has basic type of" }
! allowed
integer :: e
procedure() :: e
procedure() :: f
integer :: f
end