ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git] / gcc / testsuite / gfortran.dg / generic_26.f90
blob81a0604fbcc08a728b6b823f28ae3c64311b7361
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
13 end interface
15 contains
17 logical function testAlloc(obj) ! { dg-error "Ambiguous interfaces" }
18 integer, allocatable :: obj
19 testAlloc = .true.
20 end function
22 logical function testPtr(obj) ! { dg-error "Ambiguous interfaces" }
23 integer, pointer :: obj
24 testPtr = .false.
25 end function
27 end