gcc/testsuite/gfortran.dg/spellcheck-parameter.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! Contributed by Joost VandeVondele |
| 3 | ! test levenshtein based spelling suggestions for keyword arguments |
| 4 | |
| 5 | module test |
| 6 | contains |
| 7 | subroutine mysub(iarg1) |
| 8 | integer :: iarg1 |
| 9 | end subroutine |
| 10 | end module |
| 11 | |
| 12 | use test |
| 13 | call mysub(iarg=1) ! { dg-error "Keyword argument .iarg. at .1. is not in the procedure; did you mean .iarg1.\\?" } |
| 14 | |
| 15 | end |