view test/nest/varg_nest2.m @ 20354:227d582fa300 stable

build: Sort generated PKG_ADD contents consistently * libinterp/mk-pkg-add: Set LC_COLLATE=C when sorting for consistent output.
author Mike Miller <mtmiller@octave.org>
date Fri, 10 Jul 2015 01:10:30 -0400
parents 8e2906e2fb26
children
line wrap: on
line source

function x = varg_nest2
  [a, b] = f;
  x = a;

  if nargout == 1
    x = a;
  endif

  function [a, b] = f
    if nargout == 2
      a = b = 5;
    endif
  endfunction
endfunction