function x = foo()
  x = 1;
  y = 1;
  clear -except x;
  lol();
endfunction

function lol()
  disp("lol");
endfunction