view test/bug-52851/script3.m @ 31219:ad9822dedef8

maint: merge stable to default
author Rik <rik@octave.org>
date Tue, 30 Aug 2022 15:25:13 -0700
parents d45d1b4bb919
children
line wrap: on
line source

1; %script identifier

if (flag)
  function r = computation ()
    r = 1;
  endfunction

  r = computation ();
else
  function r = computation ()
    r = 2;
  endfunction

  r = computation ();
endif