[RS6000] PowerPC64 soft-float
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_only_2.f90
blob71db83cf7b08429103996995a75f18dcdc8c35c8
1 ! { dg-do compile }
2 ! Checks the fix for PR34672, in which generic interfaces were not
3 ! being written correctly, when renamed.
5 ! Contributed by Jos de Kloe <kloedej@knmi.nl>
7 MODULE MyMod1
8 integer, parameter :: i2_ = Selected_Int_Kind(4)
9 END Module MyMod1
11 module MyMod2
12 INTERFACE write_int
13 module procedure write_int_local
14 END INTERFACE
15 contains
16 subroutine write_int_local(value)
17 integer, intent(in) :: value
18 print *,value
19 end subroutine write_int_local
20 end module MyMod2
22 module MyMod3
23 USE MyMod2, only: write_MyInt => write_int
24 USE MyMod1, only: i2_
25 end module MyMod3
27 module MyMod4
28 USE MyMod3, only: write_MyInt
29 end module MYMOD4