3 ! Original code contributed by Andrew Wood <andrew at fluidgravity dot co.uk>
8 type, abstract
, public
:: t1
9 integer, dimension(:), allocatable
:: i
11 procedure(f1
), deferred
:: f
14 type, extends(t1
), public
:: t2
! { dg-error "must be ABSTRACT because" }
16 procedure
:: f
=> f2
! { dg-error "mismatch for the overriding" }
20 function f1(this
) ! { dg-error "must be dummy, allocatable or" }
27 type(t2
) function f2(this
)