2 ! Tests the fix for PR29912, in which the call to JETTER
3 ! would cause a segfault because a temporary was not being written.
5 ! Contributed by Philip Mason <pmason@ricardo.com>
8 character(len
=4) :: ctemp(2)
9 character(len
=512) :: temper(2)
11 !------------------------
13 !------------------------
14 temper(1) = 'doncaster'
15 temper(2) = 'uxbridge'
17 if (any (ctemp
/= ["donc", "uxbr"])) call abort ()
19 !------------------------
20 !'This went a bit wrong.'
21 !------------------------
23 if (any (ctemp
/= ["donc", "uxbr"])) call abort ()
26 function jetter(id1
,id2
)
27 character(len
=512) :: jetter(id1
:id2
)
28 jetter(id1
) = 'doncaster'
29 jetter(id2
) = 'uxbridge'