# HG changeset patch # User John W. Eaton # Date 1386822949 18000 # Node ID 701e91ea0fe606bc473b7389cbf99dd4ad2b9230 # Parent e473c4853afc1731fe49edf009e2f511ba6a229e restore tests removed in changeset d76f790b4eec diff -r e473c4853afc -r 701e91ea0fe6 libinterp/parse-tree/pt-binop.cc --- a/libinterp/parse-tree/pt-binop.cc Wed Dec 11 23:35:34 2013 -0500 +++ b/libinterp/parse-tree/pt-binop.cc Wed Dec 11 23:35:49 2013 -0500 @@ -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); +*/