2 ! { dg-options "-std=legacy" }
4 ! Test the fix for PR49630, comment #11.
6 ! Contributed by Vittorio Zecca <zeccav@gmail.com>
10 type,abstract
::abc_abstract
12 procedure(abc_interface
),deferred
::abc_function
14 type,extends(abc_abstract
)::abc_type
16 procedure
::abc_function
19 function abc_interface(this
) ! { dg-error "assumed character length result" }
21 class(abc_abstract
),intent(in
)::this
22 character(len
=*)::abc_interface
23 end function abc_interface
26 function abc_function(this
)
27 class(abc_type
),intent(in
)::this
28 character(len
=5)::abc_function
30 end function abc_function
31 subroutine do_something(this
)
32 class(abc_abstract
),intent(in
)::this
33 print *,this
%abc_function()
34 end subroutine do_something