annotate gcc/testsuite/gfortran.dg/proc_ptr_12.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +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 !
kono
parents:
diff changeset
3 ! PR 36704: Procedure pointer as function result
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 procedure(integer),pointer :: p
kono
parents:
diff changeset
8 p => foo()
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 if (p(-1)/=1) STOP 1
111
kono
parents:
diff changeset
10 contains
kono
parents:
diff changeset
11 function foo() result(bar)
kono
parents:
diff changeset
12 procedure(integer),pointer :: bar
kono
parents:
diff changeset
13 bar => iabs
kono
parents:
diff changeset
14 end function
kono
parents:
diff changeset
15 end