summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/finalize_19.f90
blob: 1eeb6af658e30d89d1ca2c63cd611fa2f7fbb553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
! { dg-do compile }
!
! PR fortran/58356
!
! Contributed by Andrew Benson
!
module ct
  type :: cfl
   contains
     final :: cfld
  end type cfl
  type, extends(cfl) :: cfde
   contains
  end type cfde
contains
  subroutine cfld(self)
    implicit none
    type(cfl), intent(inout) :: self
    return
  end subroutine cfld
end module ct