2 ! Test the fix for PR58085, where the offset for 'x' was set to zero,
5 ! Contributed by Vladimir Fuka <vladimir.fuka@gmail.com>
9 function bar (arg
) result (res
)
11 res
= [arg
, arg
+1, arg
+2]
17 character(48) line1
, line2
18 associate (x
=>shape(d
))
23 if (trim (line1
) .ne
. trim (line2
)) call abort
30 if (trim (line1
) .ne
. trim (line2
)) call abort
32 associate (x
=>bar(5)) ! make sure that we haven't broken function association
36 write (line1
, *) a
, b
, c
38 if (trim (line1
) .ne
. trim (line2
)) call abort