Mercurial > hg > octave-nkf
changeset 18130:701e91ea0fe6 gui-release
restore tests removed in changeset d76f790b4eec
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 11 Dec 2013 23:35:49 -0500 |
parents | e473c4853afc |
children | c7b68a11074b 7721e78b1337 |
files | libinterp/parse-tree/pt-binop.cc |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-binop.cc +++ b/libinterp/parse-tree/pt-binop.cc @@ -322,3 +322,16 @@ return SET_INTERNAL_VARIABLE (do_braindead_shortcircuit_evaluation); } + +/* +%!test +%! x = 0; +%! do_braindead_shortcircuit_evaluation (0); +%! if (1 | (x = 1)) +%! endif +%! assert (x, 1); +%! do_braindead_shortcircuit_evaluation (1); +%! if (1 | (x = 0)) +%! endif +%! assert (x, 1); +*/