2 ! Test the fix for PR43945 in which the over-ridding of 'doit' and
3 ! 'getit' in type 'foo2' was missed in the specific binding to 'do' and 'get'.
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
6 ! and reported to clf by Salvatore Filippone <sfilippone@uniroma2.it>
12 procedure, pass(a) :: doit
13 procedure, pass(a) :: getit
14 generic, public :: do => doit
15 generic, public :: get => getit
22 write(*,*) 'FOO%DOIT base version'
24 function getit(a) result(res)
33 type, extends(foo) :: foo2
36 procedure, pass(a) :: doit => doit2
37 procedure, pass(a) :: getit => getit2
38 !!$ generic, public :: do => doit
39 !!$ generic, public :: get => getit
50 function getit2(a) result(res)
62 if (af2%i .ne. 2) STOP 1
63 if (af2%get() .ne. 3) STOP 2