diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/use_rename_5.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/use_rename_5.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/use_rename_5.f90 b/gcc/testsuite/gfortran.dg/use_rename_5.f90 new file mode 100644 index 000000000..3d7839a0d --- /dev/null +++ b/gcc/testsuite/gfortran.dg/use_rename_5.f90 @@ -0,0 +1,17 @@ +! { dg-do compile } + +! PR fortran/37193 +! Check that renamed symbols are not accessiable uner their target name. + +MODULE m + IMPLICIT NONE + INTEGER :: i +END MODULE m + +PROGRAM main + USE m, ONLY: j => i + IMPLICIT NONE + + i = 4 ! { dg-error "no IMPLICIT type" } + j = 5 +END PROGRAM main |