RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / generic_33.f90
blob540d73b23f056b7d55406bcfd3f8e9929c2205a6
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 type :: t
8 end type
10 interface test
11 procedure testAlloc
12 procedure testPtr
13 end interface
15 contains
17 logical function testAlloc(obj)
18 class(t), allocatable :: obj
19 testAlloc = .true.
20 end function
22 logical function testPtr(obj)
23 class(t), pointer :: obj
24 testPtr = .false.
25 end function
27 end