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] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! Test the fix for PR25135 in which the ambiguity between subroutine
! foo in m_foo and interface foo in m_bar was not recognised.
!
!Contributed by Yusuke IGUCHI <iguchi@coral.t.u-tokyo.ac.jp>
!
module m_foo
contains
  subroutine foo
    print *, "foo"
  end subroutine
end module

module m_bar
  interface foo
    module procedure bar
  end interface
contains
  subroutine bar
    print *, "bar"
  end subroutine
end module

use m_foo
use m_bar

call foo ! { dg-error "is an ambiguous reference" } 
end
! { dg-final { cleanup-modules "m_foo m_bar" } }


Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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