URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [nested_modules_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! This tests the patch for PR16861.!! Contributed by Paul Thomas <pault@gcc.gnu.org>!module fooINTEGER :: iend module foomodule barcontainssubroutine sub1 (j)use foointeger, dimension(i) :: jj = 42end subroutine sub1subroutine sub2 (k)use foointeger, dimension(i) :: kk = 84end subroutine sub2end module barmodule foobaruse foo !This used to cause an ICEuse barend module foobarprogram testfoobaruse foobarinteger, dimension(3) :: l = 0i = 2call sub1 (l)i = 1call sub2 (l)if (any (l.ne.(/84,42,0/))) call abort ()end program testfoobar! { dg-final { cleanup-modules "foo bar foobar" } }
