gcc/testsuite/gfortran.dg/argument_checking_19.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR 91443 - this was not caught. |
| 3 | module x |
| 4 | contains |
| 5 | subroutine a |
| 6 | call foo(1) ! { dg-error "Type mismatch in argument" } |
| 7 | end subroutine a |
| 8 | end module x |
| 9 | |
| 10 | subroutine foo(a) |
| 11 | real :: a |
| 12 | print *,a |
| 13 | end subroutine foo |
| 14 | |
| 15 | program main |
| 16 | use x |
| 17 | call a |
| 18 | end program main |