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 // =============================================================================
8 // <-- ENGLISH IMPOSED -->
9 // <-- CLI SHELL MODE -->
11 // <-- Non-regression test for bug 3392 -->
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/show_bug.cgi?id=3392
19 test_path = get_absolute_file_path('bug_3392.tst');
28 mkdir(OS_TMP_DIR,'bug_3392');
29 TEST_DIR = OS_TMP_DIR + filesep() + 'bug_3392';
31 copyfile(SCI+'/modules/dynamic_link/tests/nonreg_tests/bug_3392.c' , TEST_DIR + filesep() + 'bug_3392.c');
36 ilib_build('libc_fun',['c_sum','c_intsum';'c_sub','c_intsub'],files,[]);
38 // load the shared library
43 //using the new primitive
44 if c_sum(3,8) <> 3+8 then pause,end
45 if c_sub(3,8) <> 3-8 then pause,end
47 // ulink() all libraries
52 // =============================================================================