Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/use_rename_9.f90 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 ! { dg-do compile } |
2 ! | |
3 ! Test the fix for PR86906, in which a spurious error was generated | |
4 ! by 'config' in the subroutine having the same symbol name as the | |
5 ! renamed 'foo_config'. | |
6 ! | |
7 ! Contributed by Damian Rouson <damian@sourceryinstitute.org> | |
8 ! | |
9 module foo | |
10 type config | |
11 end type | |
12 end module | |
13 use foo, only: foo_config => config | |
14 contains | |
15 subroutine cap | |
16 integer config | |
17 type(foo_config) extra | |
18 end subroutine | |
19 end |