1 ! Tests the fix for PR40440, in which gfortran tried to deallocate
2 ! the allocatable components of the actual argument of CALL SUB
4 ! Contributed by Juergen Reuter <juergen.reuter@desy.de>
5 ! Reduced testcase from Tobias Burnus <burnus@gcc.gnu.org>
9 integer, allocatable
:: A(:)
16 type(t
), pointer :: func
18 integer, save :: i
= 0
19 if (i
/= 0) STOP 1! multiple calls would cause this abort
24 type(t
), intent(IN
), target
:: a
25 if (any (a
%A
.ne
. [1,2,3])) STOP 2