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/] [dummy_procedure_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! PR37926 - the interface did not transfer the formal! argument list for the call to 'asz' in the specification of 'p'.!! Contributed by Janus Weil <janus@gcc.gnu.org>!module mcontainspure integer function mysize(a)integer,intent(in) :: a(:)mysize = size(a)end functionend moduleprogram proguse mimplicit nonecharacter(3) :: strinteger :: i(3) = (/1,2,3/)str = p(i,mysize)if (len(str) .ne. 3) call abortif (str .ne. "BCD") call abortcontainsfunction p(y,asz)implicit noneinteger :: y(:)interfacepure integer function asz(c)integer,intent(in) :: c(:)end functionend interfacecharacter(asz(y)) pinteger ido i=1,asz(y)p(i:i) = achar(iachar('A')+y(i))end doend functionend! { dg-final { cleanup-modules "m" } }
