3 ! Test the fix for PR35824, in which the interface assignment and
4 ! negation did not work correctly.
6 ! Contributed by Rolf Roth <everyo@gmx.net>
11 double precision,allocatable
:: b(:)
13 interface assignment(=)
14 module procedure at_from_at
17 module procedure neg_at
20 subroutine at_from_at(b
,a
)
21 type(alltype
), intent(in
) :: a
22 type(alltype
), intent(out
) :: b
26 end subroutine at_from_at
27 function neg_at(a
) result(b
)
28 type(alltype
), intent(in
) :: a
36 type(alltype
) t1
,t2
,t3
42 if (t2
%a
.ne
. -0.5d0) call abort
43 if (any(t2
%b
.ne
. [-1d0, -2d0])) call abort
46 if (t1
%a
.ne
. -0.5d0) call abort
47 if (any(t1
%b
.ne
. [-1d0, -2d0])) call abort