[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / interface_assignment_6.f90
blob81171b47f39275d606c82a81cfc20d3d7e5f4152
1 ! { dg-do compile }
3 ! PR 45521: [F08] GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 module inteface_assignment_6
9 type :: t
10 end type
12 ! this was rejected as ambiguous, but is valid in F08
13 interface assignment(=)
14 procedure testAlloc
15 procedure testPtr
16 end interface
18 contains
20 subroutine testAlloc(obj, val)
21 type(t), allocatable, intent(out) :: obj
22 integer, intent(in) :: val
23 end subroutine
25 subroutine testPtr(obj, val)
26 type(t), pointer, intent(out) :: obj
27 integer, intent(in) :: val
28 end subroutine
30 end