OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [nested_modules_5.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
!
3
! Test for supplementary fix to PR24409 - the name clash between the module
4
! variable and the interface formal argument would cause an ICE.
5
!
6
! Contributed by Paul Thomas  
7
!
8
module anything
9
  interface
10
    function  lc(string )
11
      character(len=*), intent(in)  :: string
12
      character(len=len(string ))    :: lc
13
    end function lc
14
  end interface
15
  character(len=12) :: string
16
end module anything
17
 
18
module serial
19
  use anything
20
end module serial
21
 
22
  use serial
23
  use anything
24
  character*15  :: buffer
25
  buffer = lc ("Have a Nice DAY")
26
  end
27
 
28
! { dg-final { cleanup-modules "anything serial" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.