2 ! { dg-options "-Wreturn-type" }
3 ! Tests the fix of PR34545, in which the 'numclusters' that determines the size
4 ! of fnres was not properly associated.
6 ! Reported by Jon D. Richards <jon_d_r@msn.com>
9 integer :: numclusters
= 2
14 function get_nfirst( ) result(fnres
) ! { dg-warning "not set" }
15 use m1
, only
: numclusters
16 real :: fnres(numclusters
) ! change to REAL and it works!!
17 end function get_nfirst
24 nfirst(1:numclusters
) = get_nfirst( )
25 end program kmeans_driver