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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [generic_11.f90] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
! { dg-do compile }
! { dg-do compile }
! Test the fix for PR25135 in which the ambiguity between subroutine
! Test the fix for PR25135 in which the ambiguity between subroutine
! foo in m_foo and interface foo in m_bar was not recognised.
! foo in m_foo and interface foo in m_bar was not recognised.
!
!
!Contributed by Yusuke IGUCHI 
!Contributed by Yusuke IGUCHI 
!
!
module m_foo
module m_foo
contains
contains
  subroutine foo
  subroutine foo
    print *, "foo"
    print *, "foo"
  end subroutine
  end subroutine
end module
end module
module m_bar
module m_bar
  interface foo
  interface foo
    module procedure bar
    module procedure bar
  end interface
  end interface
contains
contains
  subroutine bar
  subroutine bar
    print *, "bar"
    print *, "bar"
  end subroutine
  end subroutine
end module
end module
use m_foo
use m_foo
use m_bar
use m_bar
call foo ! { dg-error "is an ambiguous reference" }
call foo ! { dg-error "is an ambiguous reference" }
end
end
! { dg-final { cleanup-modules "m_foo m_bar" } }
! { dg-final { cleanup-modules "m_foo m_bar" } }
 
 

powered by: WebSVN 2.1.0

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