summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/abstract_type_7.f03
blob: 3ea0fdca614748845d0c915c3fafab68f8a5fa38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
!
! PR 44213: ICE when extending abstract type
!
! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>

module ice_module
  type :: a_type
  end type a_type

  type,extends(a_type),abstract :: b_type
  end type b_type

  type,extends(b_type) :: c_type
  end type c_type
end module ice_module
 
! { dg-final { cleanup-modules "ice_module" } }