PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / finalize_30.f90
blobb93a3d5064511a98a9d3f0bdad1d22262bd711e3
1 ! { dg-do compile }
2 ! { dg-options "-Wsurprising" }
4 ! PR 58175: [OOP] Incorrect warning message on scalar finalizer
6 ! Contributed by Andrew Benson <abensonca@gmail.com>
8 module ct
9 type :: a
10 contains
11 final :: aD
12 end type
13 type, extends(a) :: a1
14 end type
15 contains
16 subroutine aD(self)
17 type(a), intent(inout) :: self
18 end subroutine
19 end module
21 program test
22 use ct
23 end