view test/nest/varg_nest.m @ 20347:85b287475196

use nested module.mk include files for test subdirectories * test/bug-35448/module.mk, test/bug-36025/module.mk, test/bug-38236/module.mk, test/bug-38691/module.mk, test/bug-44940/module.mk, test/class-concat/module.mk, test/classdef/module.mk, test/classes/module.mk, test/ctor-vs-method/module.mk, test/fcn-handle-derived-resolution/module.mk, test/nest/module.mk: New files. * test/module.mk: Include them.
author John W. Eaton <jwe@octave.org>
date Tue, 07 Jul 2015 15:18:36 -0400
parents be18c9e359bf
children
line wrap: on
line source

function x = varg_nest (varargin)
  x = abs (f (-5)) + g;

  function x = f (varargin)
    x = abs (varargin{1});
  endfunction

  function x = g
    x = abs (varargin{1});
  endfunction
endfunction