3 ! Tests the fix for PR70864 in which compiler generated temporaries received
4 ! the attributes of a dummy argument. This is the original testcase.
5 ! The simplified version by Gerhard Steinmetz is gratefully acknowledged.
7 ! Contributed by Weiqun Zhang <weiqun.zhang@gmail.com>
14 procedure
:: boxarray_assign
15 generic
:: assignment(=) => boxarray_assign
18 subroutine boxarray_assign (dst
, src
)
19 class(BoxArray
), intent(inout
) :: dst
20 type (BoxArray
), intent(in
) :: src
22 end subroutine boxarray_assign
23 end module boxarray_module
25 module multifab_module
28 type, public
:: MultiFab
32 subroutine multifab_swap(mf1
, mf2
)
33 type(MultiFab
), intent(inout
) :: mf1
, mf2
36 mf1
= mf2
! Generated an ICE in trans-decl.c.
38 end subroutine multifab_swap
39 end module multifab_module