2 ! { dg-options "-ff2c" }
5 function f(a
) result(res
)
7 real(8), intent(in
) :: a(:)
10 res
= cmplx(sum(a
),product(a
),8)
15 real(8), intent(in
) :: a(:)
18 g
= cmplx(sum(a
),product(a
),8)
27 complex(8) function f(a
)
28 real(8), intent(in
) :: a(:)
30 function g(a
) result(res
)
31 real(8), intent(in
) :: a(:)
37 a(1,i
) = sqrt(real(i
,kind(a
)))
41 call check (real(c
), sum(a
))
42 call check (imag(c
), product(a
))
45 call check (real(c
), sum(a
))
46 call check (imag(c
), product(a
))
48 subroutine check (a
, b
)
49 real(8), intent(in
) :: a
, b
50 if (abs(a
- b
) > 1.e
-10_8) call abort