2 ! { dg-options "-O -fdump-tree-original" }
4 integer, parameter :: n
=100
5 real, parameter :: pi
=4*atan(1.)
6 real, parameter :: tmax
=20.
7 real, parameter :: dt
= tmax
/(2*pi
)/real(n
)
8 real, parameter :: t0
= dt
/30.
11 pure
function purefunc(x
)
18 a(i
) = purefunc(dt
*i
+ t0
) * 3. + 2 * purefunc(t0
+ i
*dt
)
22 ! { dg-final { scan-tree-dump-times "purefunc" 1 "original" } }