3 ! PR 54756: [OOP] [F08] Should reject CLASS, intent(out) in PURE procedures
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
10 final
:: fnl
! impure finalizer
13 impure
subroutine fnl(x
)
24 pure
subroutine foo(x
) ! { dg-error "may not be polymorphic" }
25 ! pure subroutine would call impure finalizer
26 class(t
), intent(out
) :: x
30 ! { dg-final { cleanup-modules "m" } }