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