3 ! Test the fix for PR80524, where gfortran on issued one final call
4 ! For 'u' going out of scope. Two further call should be emitted; one
5 ! for the lhs of the assignment in 's' and the other for the function
6 ! result, which occurs after assignment.
8 ! Contributed by Andrew Wood <andrew@fluidgravity.co.uk>
12 integer :: counter
= 0
20 SUBROUTINE t_final(this
)
28 if (counter
/= 0) stop 1 ! Finalization of 'var' after evaluation of 'expr'
33 if (counter
/= 2) stop 2 ! Finalization of 'var' and 'expr'
40 if (counter
/= 3) stop 3 ! Finalization of 'u' in 's'