2 ! test levenshtein based spelling suggestions
7 function something_else (iarg1
)
8 integer :: something_else
9 integer, intent(in
) :: iarg1
10 something_else
= iarg1
+ 42
11 end function something_else
12 function add_fourtytwo (iarg1
)
13 integer :: add_fourtytwo
14 integer, intent(in
) :: iarg1
15 add_fourtytwo
= iarg1
+ 42
16 end function add_fourtytwo
19 function myadd(iarg1
, iarg2
)
22 integer, intent(in
) :: iarg1
, iarg2
27 use mymod1
, something_good
=> something_else
30 integer :: myadd
, i
, j
, myvar
34 j
= something_goof(j
) ! { dg-error "no IMPLICIT type; did you mean .something_good.\\?" }
35 j
= myaddd(i
, j
) ! { dg-error "no IMPLICIT type; did you mean .myadd.\\?" }
37 j
= add_fourtytow(i
, j
) ! { dg-error "no IMPLICIT type; did you mean .add_fourtytwo.\\?" }
38 myval
= myadd(i
, j
) ! { dg-error "no IMPLICIT type; did you mean .myvar.\\?" }
39 if (j
/= 42 * 2) STOP 2
41 end program spellchekc