view test/bug-64620/bug_64620_1.m @ 33612:23bb1d9fcec8 bytecode-interpreter tip

maint: Merge default to bytecode-interpreter.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Sun, 19 May 2024 23:02:07 -0400
parents cad9584e7bad
children
line wrap: on
line source

function bug_64620_1
  h = subby;
end

function h = subby % The h return is needed for the bug to show
  function nested_fn
    % This framed stored shared pointer to subby's frame when put in handle
  end

  h = @nested_fn;

  obj = cdef_counts_self;
  % obj destructor was not triggered
end