2 ! Tests the fix for PR33499 in which the ENTRY cx_radc was not
5 ! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>
10 PUBLIC
:: cx
, OPERATOR(+), OPERATOR(.eq
.)
15 INTERFACE OPERATOR (+)
16 MODULE PROCEDURE cx_cadr
, cx_radc
18 INTERFACE OPERATOR (.eq
.)
19 MODULE PROCEDURE cx_eq
22 FUNCTION cx_cadr(z
, r
)
24 TYPE (cx
) :: cx_cadr
, cx_radc
25 TYPE (cx
), INTENT(IN
) :: z
26 integer, INTENT(IN
) :: r
31 TYPE (cx
), INTENT(IN
) :: u
, v
33 cx_eq
= (u
%re
.eq
. v
%re
) .and
. (u
%im
.eq
. v
%im
)
38 type(cx
) :: a
= cx (1, 2), c
, d
41 if (.not
.((a
+ b
) .eq
. (b
+ a
))) call abort ()
42 if (.not
.((a
+ b
) .eq
. cx (4, 2))) call abort ()
44 ! { dg-final { cleanup-modules "complex" } }