comparison test/compile/bytecode_multi_assign.m @ 32151:72dcb1cef2c9

maint: Strip trailing whitespace from source files. Modified files: NEWS.8.md, file-editor-tab.cc, call-stack.cc, compile.cc, perms.cc, stack-frame.cc, ov-base.cc, ov-fcn-handle.cc, ov-fcn-handle.h, ov-fcn.cc, ov-oncleanup.h, ov-range.cc, ov-range.h, ov-ref.cc, ov-ref.h, ov-scalar.h, ov-struct.cc, ov-vm.h, pt-bytecode-vm-internal.h, pt-bytecode-vm.cc, pt-bytecode-vm.h, pt-bytecode-walk.cc, pt-eval.cc, isuniform.m, inputParser.m, xlim.m, ylim.m, zlim.m, movfun.m, std.m, var.m, isstrprop.m, bench.m, bench.py, bytecode.tst, bytecode_anon_handles.m, bytecode_cell.m, bytecode_dountil.m, bytecode_end.m, bytecode_errors.m, bytecode_eval_1.m, bytecode_for.m, bytecode_global_1.m, bytecode_if.m, bytecode_leaks.m, bytecode_matrix.m, bytecode_multi_assign.m, bytecode_persistant.m, bytecode_range.m, bytecode_trycatch.m, bytecode_unwind.m, bytecode_while.m, bytecode_disp.m, bytecode_disp.tst, parser.tst.
author John W. Eaton <jwe@octave.org>
date Mon, 19 Jun 2023 23:21:41 -0400
parents 6e6e99e8a4de
children 6d2f6ca0996f
comparison
equal deleted inserted replaced
32150:994b527e0ffe 32151:72dcb1cef2c9
10 __printf_assert__ ("%d ", c); 10 __printf_assert__ ("%d ", c);
11 __printf_assert__ ("%d ", d); 11 __printf_assert__ ("%d ", d);
12 12
13 % Non ids in lhs 13 % Non ids in lhs
14 % Eval is used as a cheat since 14 % Eval is used as a cheat since
15 % rhs need to know how many lhs values 15 % rhs need to know how many lhs values
16 % there are. 16 % there are.
17 17
18 [e, f.a, g, h.b] = foo (); 18 [e, f.a, g, h.b] = foo ();
19 __printf_assert__ ("%d ", e); 19 __printf_assert__ ("%d ", e);
20 __printf_assert__ ("%d ", f.a); 20 __printf_assert__ ("%d ", f.a);
39 __printf_assert__ ("%d ", e); 39 __printf_assert__ ("%d ", e);
40 __printf_assert__ ("%d ", f.a); 40 __printf_assert__ ("%d ", f.a);
41 __printf_assert__ ("%d ", g{end}); 41 __printf_assert__ ("%d ", g{end});
42 __printf_assert__ ("%d ", h.b); 42 __printf_assert__ ("%d ", h.b);
43 43
44 44
45 [C{1:2}, D] = {1,2,3}{:}; 45 [C{1:2}, D] = {1,2,3}{:};
46 __printf_assert__ ("%d ", C{1}); 46 __printf_assert__ ("%d ", C{1});
47 __printf_assert__ ("%d ", C{2}); 47 __printf_assert__ ("%d ", C{2});
48 __printf_assert__ ("%d ", D); 48 __printf_assert__ ("%d ", D);
49 end 49 end