1 ! RUN: %python %S/test_errors.py %s %flang_fc1
7 class(t2
), allocatable
:: pc
10 pure
subroutine subr(pp1
, pp2
, mp2
)
11 class(t1
), intent(in out
), pointer :: pp1
12 class(t2
), intent(in out
) :: pp2
13 type(t2
), pointer :: mp2
14 !ERROR: 'pp1' may not be deallocated in a pure procedure because it is polymorphic
16 !ERROR: 'pc' may not be deallocated in a pure procedure because it is polymorphic
18 !ERROR: 'mp2' may not be deallocated in a pure procedure because its type has a polymorphic allocatable ultimate component 'pc'