* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_32.f90
blob035965be426d39039a6f592ffd7da65307b87a53
1 ! { dg-do compile }
3 ! PR 59547: [OOP] Problem with using tbp specification function in multiple class procedures
5 ! Contributed by <bugs@miller-mohr.de>
7 module classes
9 implicit none
11 type :: base_class
12 contains
13 procedure, nopass :: get_num
14 procedure :: get_array, get_array2
15 end type
17 contains
19 pure integer function get_num()
20 get_num = 2
21 end function
23 function get_array( this ) result(array)
24 class(base_class), intent(in) :: this
25 integer, dimension( this%get_num() ) :: array
26 end function
28 function get_array2( this ) result(array)
29 class(base_class), intent(in) :: this
30 integer, dimension( this%get_num(), this%get_num() ) :: array
31 end function
33 end module