2 ! Test the fix for PR66993, in which the use associated version of 'i'
3 ! was incorrectly determined to be ambiguous with the 'i', host associated
4 ! in submodule 'sm' from the module 'm'. The principle has been tested with
5 ! the function 'time_two' in addition.
7 ! Contributed by Mikael Morin <mikael.morin@sfr.fr>
10 integer, parameter :: i = -1
12 module subroutine show_i
16 integer function times_two (arg)
23 integer, parameter :: i = 2
25 integer function times_two (arg)
34 module subroutine show_i
36 if (times_two (i) .ne. 4) STOP 2
44 if (times_two (i) .ne. 2) STOP 4