1 ! Make sure the f2c calling conventions work
3 ! { dg-options "-ff2c" }
9 complex function c(a
,b
)
13 double complex function d(e
,f
)
15 d
= cmplx (e
, f
, kind(d
))
18 subroutine test_with_interface()
26 complex function c(a
,b
)
32 double complex function d(e
,f
)
46 if (c(a
,b
) /= cmplx(a
,b
)) STOP 3
50 if (d(z
,w
) /= cmplx(z
,w
, kind(z
))) STOP 4
51 end subroutine test_with_interface
66 if (c(a
,b
) /= cmplx(a
,b
)) STOP 7
70 if (d(z
,w
) /= cmplx(z
,w
, kind(z
))) STOP 8
72 call test_with_interface ()