URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [used_types_13.f90] - Rev 302
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
! Tests the fix for PR29820, which was another problem with derived type
! association. Not all siblings were being searched for identical types.
!
! Contributed by Harald Anlauf <anlauf@gmx.de>
!
module geo
type geodetic
real :: h
end type geodetic
end module geo
module gfcbug44
implicit none
contains
subroutine point ( gp)
use geo
type(geodetic), intent(out) :: gp
type(geodetic) :: gpx(1)
gp = gpx(1)
end subroutine point
subroutine plane ()
use geo
type(geodetic) :: gp
call point ( gp)
end subroutine plane
end module gfcbug44
! { dg-final { cleanup-modules "geo gfcbug44" } }
Go to most recent revision | Compare with Previous | Blame | View Log