PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_43.f90
blob7bbd4b5bdab455867c3e0ba43edbf73940e4af43
1 ! { dg-do compile }
3 ! PR 58023: [F03] ICE on invalid with bad PPC declaration
5 ! Contributed by Andrew Benson <abensonca@gmail.com>
7 module m
8 implicit none
10 abstract interface
11 double precision function mr()
12 end function mr
13 end interface
15 type :: sfd
16 procedure(mr), pointer :: mr1 ! { dg-error "must have at least one argument" }
17 procedure(mr), pointer :: mr2 ! { dg-error "must have at least one argument" }
18 end type sfd
20 contains
22 subroutine go()
23 implicit none
24 type(sfd):: d
26 write (0,*) d%mr2()
27 return
28 end subroutine go
30 end module m