Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/spellcheck-procedure_2.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do compile } ! test levenshtein based spelling suggestions program spellchekc implicit none (external) interface subroutine bark_unless_zero(iarg) implicit none integer, intent(in) :: iarg end subroutine bark_unless_zero end interface integer :: i i = 0 if (i /= 1) STOP 1 call bark_unless_0(i) ! { dg-error "not explicitly declared; did you mean .bark_unless_zero.\\?" } ! call complain_about_0(i) ! { -dg-error "not explicitly declared; did you mean .complain_about_zero.\\?" } contains ! We cannot reliably see this ATM, would need an unambiguous bit somewhere subroutine complain_about_zero(iarg) integer, intent(in) :: iarg if (iarg /= 0) STOP 2 end subroutine complain_about_zero end program spellchekc subroutine bark_unless_zero(iarg) implicit none integer, intent(in) :: iarg if (iarg /= 0) STOP 3 end subroutine bark_unless_zero