URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pure_byref_3.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! PR 22607: External/module pure return-by-reference functionspure function hoj()integer :: hoj(3)hoj = (/1, 2, 3/)end function hojmodule huj_modcontainspure function huj()integer :: huj(3)huj = (/1, 2, 3/)end function hujend module huj_modprogram pure_byref_3use huj_modimplicit noneinterfacepure function hoj()integer :: hoj(3)end function hojend interfaceinteger :: a(3)a = huj()if (.not. all(a == (/1, 2, 3/))) call abort()a = hoj()if (.not. all(a == (/1, 2, 3/))) call abort()end program pure_byref_3! { dg-final { cleanup-modules "huj_mod" } }
