annotate gcc/testsuite/gfortran.dg/proc_decl_5.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! PR fortran/33945
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PROCEDURE in the interface was wrongly rejected
kono
parents:
diff changeset
5 module modproc
kono
parents:
diff changeset
6 implicit none
kono
parents:
diff changeset
7 interface bar
kono
parents:
diff changeset
8 procedure x
kono
parents:
diff changeset
9 end interface bar
kono
parents:
diff changeset
10 procedure(sub) :: x
kono
parents:
diff changeset
11 interface
kono
parents:
diff changeset
12 integer function sub()
kono
parents:
diff changeset
13 end function sub
kono
parents:
diff changeset
14 end interface
kono
parents:
diff changeset
15 end module modproc
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 integer function x()
kono
parents:
diff changeset
18 implicit none
kono
parents:
diff changeset
19 x = -5
kono
parents:
diff changeset
20 end function x
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 program test
kono
parents:
diff changeset
23 use modproc
kono
parents:
diff changeset
24 implicit none
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
25 if(x() /= -5) STOP 1
111
kono
parents:
diff changeset
26 end program test