5 ! Test-case based on a contribution of Vittorio Zecca.
7 ! The used subroutine was not the use-associated but the host associated one!
8 ! The use-associated function/variable were already working properly.
13 integer function fun()
25 ! All procedures/variables below refer to the ones in module "m"
26 ! and not to the siblings in this module "m2".
28 if (fun() /= 42) call abort()
29 if (var
/= 43) call abort()
31 if (var
/= 44) call abort()
33 integer function fun()
45 ! { dg-final { cleanup-modules "m m2" } }