URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [use_12.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-Wreturn-type" }! Tests the fix of PR34545, in which the 'numclusters' that determines the size! of fnres was not properly associated.!! Reported by Jon D. Richards <jon_d_r@msn.com>!module m1integer :: numclusters = 2end module m1module m2containsfunction get_nfirst( ) result(fnres) ! { dg-warning "not set" }use m1, only: numclustersreal :: fnres(numclusters) ! change to REAL and it works!!end function get_nfirstend module m2program kmeans_driveruse m1use m2integer :: nfirst(3)nfirst(1:numclusters) = get_nfirst( )end program kmeans_driver! { dg-final { cleanup-modules "m1 m2" } }
