3 ! PR 47565: [4.6 Regression][OOP] Segfault with TBP
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
9 procedure(find_y), pointer, nopass :: ppc
11 procedure, nopass :: find_y
13 integer, private :: count = 0
15 function find_y() result(res)
16 integer, allocatable :: res
25 class(t), allocatable :: this
30 ! (1) ordinary procedure
32 if (y/=1) call abort()
33 ! (2) procedure pointer component
35 if (y/=2) call abort()
36 ! (3) type-bound procedure
38 if (y/=3) call abort()