Mercurial > octave-nkf
view test/bug-38565.tst @ 19892:77f65eabac20 stable
avoid crash when __FILE__ is used at top level (bug #44363)
* lex.ll (octave_base_lexer::is_keyword_token): Call correct
constructor for magic_file_kw.
* token.h, token.cc (token::token (int, const char *, int, int)):
New constructor.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Feb 2015 11:33:39 -0500 |
parents | b9e510a1f308 |
children |
line wrap: on
line source
%!function r = f (x) %! if (ischar (x)) %! r = x; %! else %! error ("expecting character string"); %! endif %!endfunction %!assert (eval ("f 10;"), "10");