testit Subroutine

subroutine testit(string, test)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: string
logical, intent(in) :: test

Contents

Source Code


Source Code

subroutine testit(string,test)
character(len=*),intent(in) :: string
logical,intent(in) :: test

   if(test)then
      print it,':syntax:',string,'passed'
   else
      print it,':syntax:',string,'failed'
      stop 1
   endif

end subroutine testit