summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/compile/contained_4.f90
blob: 233dab878fd9b028fd346c2007dbe42f2b1d5077 (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
! Check contained functions with the same name.
module contained_4

contains

  subroutine foo1()
    call bar()
  contains
    subroutine bar()
    end subroutine bar
  end subroutine foo1

  subroutine foo2()
    call bar()
  contains
    subroutine bar()
    end subroutine bar
  end subroutine foo2

end module contained_4

subroutine foo1()
call bar()
contains
  subroutine bar()
  end subroutine bar
end subroutine

subroutine foo2()
  call bar()
contains
  subroutine bar()
  end subroutine bar
end subroutine foo2