gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_6.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-Wall" } |
| 3 | ! PR 94270 - this used to give a bogus warning. |
| 4 | ! Test case by Ignacio Fernández Galván. |
| 5 | subroutine foo() |
| 6 | external bar |
| 7 | call meh(bar) |
| 8 | call foo_internal() |
| 9 | contains |
| 10 | subroutine foo_internal() |
| 11 | call meh(bar) |
| 12 | end subroutine foo_internal |
| 13 | end subroutine foo |