URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [entry_15.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/34137!! Entry was previously not possible in a module.! Checks also whether the different result combinations! work properly.!module m2implicit nonecontainsfunction func(a)implicit noneinteger :: a, funcreal :: func2func = a*8returnentry ent(a) result(func2)ent = -a*4.0 ! { dg-error "is not a variable" }returnend function funcend module m2module m3implicit nonecontainsfunction func(a) result(res)implicit noneinteger :: a, resreal :: func2res = a*12returnentry ent(a) result(func2)ent = -a*6.0 ! { dg-error "is not a variable" }returnend function funcend module m3
