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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [nested_modules_4.f90] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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