1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2012 - Scilab Enterprises - Antoine ELIAS
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- ENGLISH IMPOSED -->
10 // <-- CLI SHELL MODE -->
12 // <-- Non-regression test for bug 11046 -->
14 // <-- Bugzilla URL -->
15 // http://bugzilla.scilab.org/11046
17 // <-- Short Description -->
18 // Sometimes, OverLoad(0) did not call %_xxx but %x_xxx overload
20 mkdir(pathconvert(TMPDIR+"/bug_11046"));
21 cd(pathconvert(TMPDIR+"/bug_11046"));
22 copyfile(SCI+"/modules/api_scilab/tests/nonreg_tests/bug_11046.c",pathconvert(TMPDIR+"/bug_11046/bug_11046.c",%F));
23 ilib_build("gw_bug_11046", ["bug_11046", "sci_bug_11046"], "bug_11046.c", []);
25 function %_bug_11046()
26 disp('OK default overload called.')
31 "OK default overload called."
32 function [x] = call_overload(a, b)
36 function call_overload2(a, b)
38 //try to call %s_bug_11046
39 call_overload2(1, call_overload(1,2));
41 "OK default overload called."