1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2008 - INRIA - Allan CORNET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- ENGLISH IMPOSED -->
8 // <-- CLI SHELL MODE -->
9 // <-- Non-regression test for bug 3392 -->
11 // <-- Bugzilla URL -->
12 // http://bugzilla.scilab.org/show_bug.cgi?id=3392
15 test_path = get_absolute_file_path('bug_3392.tst');
19 mkdir(OS_TMP_DIR,'bug_3392');
20 TEST_DIR = OS_TMP_DIR + filesep() + 'bug_3392';
21 copyfile(SCI+'/modules/dynamic_link/tests/nonreg_tests/bug_3392.c' , TEST_DIR + filesep() + 'bug_3392.c');
24 ilib_build('libc_fun',['c_sum','c_intsum';'c_sub','c_intsub'],files,[]);
25 // load the shared library
28 //using the new primitive
29 if c_sum(3,8) <> 3+8 then bugmes();quit;end
30 if c_sub(3,8) <> 3-8 then bugmes();quit;end
31 // ulink() all libraries
35 // =============================================================================