2 ! { dg-options "-fcray-pointer -ffloat-store" }
4 ! Test the fix for PR36528 in which the Cray pointer was not passed
5 ! correctly to 'euler' so that an undefined reference to fcn was
6 ! generated by the linker.
8 ! Reported by Tobias Burnus <burnus@gcc.gnu.org>
9 ! from http://groups.google.com/group/comp.lang.fortran/msg/86b65bad78e6af78
16 real function euler(xp
,xk
,dx
,f
)
17 real, intent(in
) :: xp
, xk
, dx
40 real function euler (xp
,xk
,dx
,f
)
41 real, intent(in
) :: xp
, xk
,dx
49 real x
, xp
, xk
, dx
, y
, z
61 z
= euler(0.0,1.0,0.0005,fcn
)
62 if (abs (y
- z
) .gt
. 1e-6) call abort