summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/host_assoc_call_1.f90
blob: 804929080a18cd5df125179ce89f62d276f61d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
! Tests the fix for PR31494, where the call of sub2 would reference
! the variable, rather than the contained subroutine.
!
! Contributed by Michael Richmond <michael.a.richmond@nasa.gov>
!
MODULE ksbin2_aux_mod
REAL, DIMENSION(1) :: sub2
CONTAINS
  SUBROUTINE sub1
    CALL sub2
    CONTAINS 
      SUBROUTINE sub2
      END SUBROUTINE sub2
  END SUBROUTINE sub1
END MODULE ksbin2_aux_mod
! { dg-final { cleanup-modules "ksbin2_aux_mod" } }