3 ! Test the fix for PR64324 in which deferred length user ops
4 ! were being mistaken as assumed length and so rejected.
6 ! Contributed by Ian Harvey <ian_harvey@bigpond.com>
10 INTERFACE OPERATOR(.ToString
.)
11 MODULE PROCEDURE tostring
12 END INTERFACE OPERATOR(.ToString
.)
14 FUNCTION tostring(arg
)
15 INTEGER, INTENT(IN
) :: arg
16 CHARACTER(:), ALLOCATABLE
:: tostring
17 allocate (character(5) :: tostring
)
18 write (tostring
, "(I5)") arg
23 character(:), allocatable
:: str
26 if (str
.ne
. " 999") call abort