Mercurial > hg > octave-terminal
changeset 15230:b0c08e995950
pt-jit.cc (jit_convert::get_variable): Add type bound
author | Max Brister <max@2bass.com> |
---|---|
date | Sat, 25 Aug 2012 13:36:48 -0600 |
parents | e5a86de6023c |
children | 8442131a391a |
files | libinterp/interp-core/pt-jit.cc |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interp-core/pt-jit.cc +++ b/libinterp/interp-core/pt-jit.cc @@ -740,6 +740,8 @@ octave_value val = symbol_table::find (vname); jit_type *type = jit_typeinfo::type_of (val); + bounds.push_back (type_bound (type, vname)); + return create_variable (vname, type); } @@ -2012,4 +2014,14 @@ %!error test_compute_idom () +%!function x = test_overload (a) +%! while 1 +%! x = a; +%! break; +%! endwhile +%!endfunction + +%!assert (test_overload (1), 1); +%!assert (test_overload ([1 2]), [1 2]); + */