Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gfortran.dg/use_only_2.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27) |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gfortran.dg/use_only_2.f90 Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,29 @@ +! { dg-do compile } +! Checks the fix for PR34672, in which generic interfaces were not +! being written correctly, when renamed. +! +! Contributed by Jos de Kloe <kloedej@knmi.nl> +! +MODULE MyMod1 + integer, parameter :: i2_ = Selected_Int_Kind(4) +END Module MyMod1 + +module MyMod2 + INTERFACE write_int + module procedure write_int_local + END INTERFACE +contains + subroutine write_int_local(value) + integer, intent(in) :: value + print *,value + end subroutine write_int_local +end module MyMod2 + +module MyMod3 + USE MyMod2, only: write_MyInt => write_int + USE MyMod1, only: i2_ +end module MyMod3 + +module MyMod4 + USE MyMod3, only: write_MyInt +end module MYMOD4