view test/bug-50014/duplicate_subfunction_old_syntax.m @ 31207:1c40fc2344f4 stable

quad2d.m: Add BIST test to cset b0e90ca8e679 (bug #62972) * quad2d.m: Add BIST test for bug #62972.
author Rik <rik@octave.org>
date Sun, 28 Aug 2022 14:19:43 -0700
parents 0c99b8c2e5bb
children
line wrap: on
line source

## Test old-style subfunctions with no END statements.

function r = duplicate_subfunction_old_syntax ()
  r = 0;
  bug ();

function r = bug ()
  r = 1

function r = bug ()
  r = 2