Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / generic_25.f90
blob619b792217f20cc7218ac6d4e53f4a3e621710ee
1 ! { dg-do run }
3 ! PR 45521: [F08] GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE
5 ! Contributed by <wangmianzhi1@linuxmail.org>
7 interface test
8 procedure testAlloc
9 procedure testPtr
10 end interface
12 integer, allocatable :: a1
13 integer, pointer :: a2
15 if (.not.test(a1)) STOP 1
16 if (test(a2)) STOP 2
18 contains
20 logical function testAlloc(obj)
21 integer, allocatable :: obj
22 testAlloc = .true.
23 end function
25 logical function testPtr(obj)
26 integer, pointer :: obj
27 testPtr = .false.
28 end function
30 end