URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [assumed_dummy_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! Tests the fix for PRs 19358, 19477, 21211 and 21622.!! Note that this tests only the valid cases with explicit interfaces.!! Contributed by Paul Thomas <pault@gcc.gnu.org>!module globalcontainsSUBROUTINE goo (x, i)REAL, DIMENSION(i:) :: xinteger :: ix (3) = 99.0END SUBROUTINE gooend module globalSUBROUTINE foo (x, i)REAL, DIMENSION(i:) :: xinteger :: ix (4) = 42.0END SUBROUTINE fooprogram testuse globalreal, dimension(3) :: y = 0integer :: j = 2interfaceSUBROUTINE foo (x, i)REAL, DIMENSION(i:) :: xinteger :: iEND SUBROUTINE fooend interfacecall foo (y, j)call goo (y, j)call roo (y, j)if (any(y.ne.(/21.0, 99.0, 42.0/))) call abort ()containsSUBROUTINE roo (x, i)REAL, DIMENSION(i:) :: xinteger :: ix (2) = 21.0END SUBROUTINE rooend program test! { dg-final { cleanup-modules "global" } }
