2 ! { dg-options "-std=legacy" }
4 ! Tests the fix for PR31483, in which dummy argument procedures
5 ! produced an ICE if they had an alternate return.
7 ! Contributed by Mathias Fröhlich <M.Froehlich@science-computing.de>
14 SUBROUTINE PHLOAD (READER
, i
, res
)
19 CALL READER (i
, *1, *2)
28 call PHLOAD (R
, 1, res
)
29 if (res
.ne
. "one") call abort ()
30 CALL PHLOAD (R
, 2, res
)
31 if (res
.ne
. "two") call abort ()