2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / generic_26.f90
bloba1deef19f99af90a03eb0f8a912b17294fe19bea
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! PR 45521: [F08] GENERIC resolution with ALLOCATABLE/POINTER and PROCEDURE
6 ! Contributed by <wangmianzhi1@linuxmail.org>
8 module a
10 interface test
11 procedure testAlloc
12 procedure testPtr ! { dg-error "Ambiguous interfaces" }
13 end interface
15 contains
17 logical function testAlloc(obj)
18 integer, allocatable :: obj
19 testAlloc = .true.
20 end function
22 logical function testPtr(obj)
23 integer, pointer :: obj
24 testPtr = .false.
25 end function
27 end
29 ! { dg-final { cleanup-modules "a" } }