c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_40.f90
blobdae91df1c3c85352c387e42a80b020b1bb776fb3
1 ! { dg-do compile }
3 ! PR 56261: [OOP] seg fault call procedure pointer on polymorphic array
5 ! Contributed by Andrew Benson <abensonca@gmail.com>
7 implicit none
8 type :: nc
9 end type
10 external :: qq
11 procedure( ), pointer :: f1
12 procedure(ff), pointer :: f2
14 f1 => ff ! { dg-error "Explicit interface required" }
15 f2 => qq ! { dg-error "Explicit interface required" }
17 contains
19 subroutine ff (self)
20 class(nc) :: self
21 end subroutine
23 end