Mercurial > octave
view test/bug-50014/duplicate_nested_in_subfunction_ok.m @ 23043:0c99b8c2e5bb
additional nested function and subfunction tests
* test/bug-50014/duplicate_nested_in_subfunction_ok.m,
test/bug-50014/duplicate_nested_parent_function.m,
test/bug-50014/duplicate_parent_nested2.m,
test/bug-50014/duplicate_parent_nested_function.m,
test/bug-50014/duplicate_primary_subfunction_old_syntax.m,
test/bug-50014/duplicate_subfunction_old_syntax.m,
test/bug-50014/duplicate_subfunction_separate_scope_ok.m:
New files.
* bug-50014.tst: Update tests.
* test/bug-50014/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Jan 2017 16:19:52 -0500 |
parents | |
children |
line wrap: on
line source
## Test that duplicate names in separate subfunctions are OK. function retval = duplicate_nested_in_subfunction_ok () retval = sub1 () + sub2 (); endfunction function r = sub1 () function notbug () r = 1; endfunction notbug (); endfunction function r = sub2 () function notbug () r = 2; endfunction notbug (); endfunction