summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/used_types_13.f90
blob: 9208b593333f1f0298066b67b717c03e51b022fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
! { 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" } }