1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
2 ! PDT sensitivity of FINAL subroutines
7 final
:: finalArr
, finalElem
10 subroutine finalArr(x
)
11 type(pdt(1)), intent(in out
) :: x(:)
13 elemental
subroutine finalElem(x
)
14 type(pdt(3)), intent(in out
) :: x
23 !PORTABILITY: Variable 'x1([INTEGER(8)::1_8])' has a vector subscript and will be finalized by non-elemental subroutine 'finalarr'
25 x2([1]) = pdt(2)() ! ok, doesn't match either
26 x3([1]) = pdt(3)() ! ok, calls finalElem