PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / deferred_type_param_3.f90
blob809738d5b98ccf154a0f03e9fec8ae521c6c5400
1 ! { dg-do compile }
3 ! PR fortran/45170
4 ! PR fortran/52158
6 ! Contributed by Damian Rouson
8 module speaker_class
9 type speaker
10 contains
11 procedure :: speak
12 end type
13 contains
14 function speak(this)
15 class(speaker) ,intent(in) :: this
16 character(:) ,allocatable :: speak
17 end function
18 subroutine say_something(somebody)
19 class(speaker) :: somebody
20 print *,somebody%speak()
21 end subroutine
22 end module