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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [module_naming_1.f90] - Rev 414

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

! { dg-do assemble }
! PR 31144
! Makes sure that our name mangling scheme can't be outwitted

! old scheme
module m1
contains
  subroutine m2__m3()
  end subroutine m2__m3
end module m1

module m1__m2
contains
  subroutine m3()
  end subroutine m3
end module m1__m2

! New scheme, relies on capitalization
module m2
contains
  subroutine m2_MOD_m3()
    ! mangled to __m2_MOD_m2_mod_m3
  end subroutine m2_MOD_m3
end module m2

module m2_MOD_m2
contains
  subroutine m3()
    ! mangled to __m2_mod_m2_MOD_m3
  end subroutine m3
end module m2_MOD_m2
! { dg-final { cleanup-modules "m1 m1__m2 m2 m2_MOD_m2" } }

Go to most recent revision | 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.