URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_allocate_9.f03] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! PR51870 - ALLOCATE with class function expression for SOURCE failed.! This is the original test in the PR.!! Reported by Tobias Burnus <burnus@gcc.gnu.org>!module show_producer_classimplicit nonetype integrandinteger :: variable = -1end type integrandtype show_producercontainsprocedure ,nopass :: create_showend typecontainsfunction create_show () result(new_integrand)class(integrand) ,allocatable :: new_integrandallocate(new_integrand)new_integrand%variable = 99end functionend moduleprogram mainuse show_producer_classimplicit noneclass(integrand) ,allocatable :: kernel1, kernel2type(show_producer) :: executive_producerallocate(kernel1, kernel2,mold=executive_producer%create_show ())if (kernel1%variable .ne. -1) call abortif (kernel2%variable .ne. -1) call abortend program! { dg-final { cleanup-modules "show_producer_class" } }
