summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/use_rename_4.f90
blob: e0e83b89181a11247d5e5bad972dc681c350463e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do run }

! PR fortran/37193
! Check fix for problem with re-using the same symbol both renamed and
! plain.

MODULE m
  IMPLICIT NONE
  INTEGER :: i
END MODULE m

PROGRAM main
  USE m, ONLY: i, j => i
  IMPLICIT NONE

  i = 4
  j = 5

  IF (i /= j) THEN
    CALL abort ()
  END IF
END PROGRAM main