view gcc/testsuite/gfortran.dg/use_rename_9.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do compile }
!
! Test the fix for PR86906, in which a spurious error was generated
! by 'config' in the subroutine having the same symbol name as the
! renamed 'foo_config'.
!
! Contributed by Damian Rouson  <damian@sourceryinstitute.org>
!
module foo
  type config
  end type
end module
  use foo, only: foo_config => config
contains
  subroutine cap
    integer config
    type(foo_config) extra
  end subroutine
end