summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/module_interface.f90
blob: 86fd7914b4d3824639c0ca893bfec67c42e26051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
! We were incorrectly mangling procedures in interfaces in modules

module module_interface
    interface
        subroutine foo ()
        end subroutine foo
    end interface
contains
subroutine cs
end subroutine

subroutine cproc
  interface
      subroutine bar ()
      end subroutine
  end interface
  call bar ()
  call foo ()
  call cs ()
end subroutine
end module

subroutine foo ()
end subroutine

subroutine bar ()
end subroutine

program module_interface_proc
  use module_interface
  interface
      subroutine bar ()
      end subroutine
  end interface

  call cproc ()
  call foo ()
  call bar ()
end program