gcc/testsuite/gfortran.fortran-torture/compile/contained_4.f90
raw| 1 | ! Check contained functions with the same name. |
| 2 | module contained_4 |
| 3 | |
| 4 | contains |
| 5 | |
| 6 | subroutine foo1() |
| 7 | call bar() |
| 8 | contains |
| 9 | subroutine bar() |
| 10 | end subroutine bar |
| 11 | end subroutine foo1 |
| 12 | |
| 13 | subroutine foo2() |
| 14 | call bar() |
| 15 | contains |
| 16 | subroutine bar() |
| 17 | end subroutine bar |
| 18 | end subroutine foo2 |
| 19 | |
| 20 | end module contained_4 |
| 21 | |
| 22 | subroutine foo1() |
| 23 | call bar() |
| 24 | contains |
| 25 | subroutine bar() |
| 26 | end subroutine bar |
| 27 | end subroutine |
| 28 | |
| 29 | subroutine foo2() |
| 30 | call bar() |
| 31 | contains |
| 32 | subroutine bar() |
| 33 | end subroutine bar |
| 34 | end subroutine foo2 |
| 35 |