OSDN Git Service

gcc/fortran:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / nested_modules_4.f90
1 ! { dg-do compile }
2 !
3 ! Test for the fix to PR24409 - the name clash between the module
4 ! name and the interface formal argument would cause an ICE.
5 !
6 ! Contributed by Paul Thomas  <pault@gcc.gnu.org>
7 !
8 module string 
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 end module string
16
17 module serial
18   use string
19 end module serial
20
21   use serial
22   use string
23   character*15  :: buffer  
24   buffer = lc ("Have a Nice DAY")
25   end
26
27 ! { dg-final { cleanup-modules "string serial" } }