summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst
diff options
context:
space:
mode:
authorCalixte DENIZET <calixte.denizet@scilab-enterprises.com>2012-05-24 11:49:25 +0200
committerSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>2012-05-24 13:27:34 +0200
commit68a06aadf4bd3ca0117f85f6b2ff2716e63fcede (patch)
tree311f836cf2109aa3d7ff748c929a6975b477444d /scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst
parent9d8023bce5a6aa0fd71e192a67b16a1a98aa7d12 (diff)
downloadscilab-68a06aadf4bd3ca0117f85f6b2ff2716e63fcede.zip
scilab-68a06aadf4bd3ca0117f85f6b2ff2716e63fcede.tar.gz
Avoid bug 6792 with a built-in
Change-Id: I71b09c652a711f2e70408ff606c10f91acb1fcb5
Diffstat (limited to 'scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst')
-rw-r--r--scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst9
1 files changed, 8 insertions, 1 deletions
diff --git a/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst b/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst
index 5f01e5d..cc9866d 100644
--- a/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst
+++ b/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.tst
@@ -11,11 +11,13 @@
11// http://bugzilla.scilab.org/show_bug.cgi?id=6792 11// http://bugzilla.scilab.org/show_bug.cgi?id=6792
12// 12//
13// <-- Short Description --> 13// <-- Short Description -->
14// mis-interpretation of macro arguments when the macro call appears in an list extraction 14// mis-interpretation of macro arguments when the macro call appears in an list extraction
15function [x,y]=fun(varargin), x=varargin,y=size(varargin),endfunction 15function [x,y]=fun(varargin), x=varargin,y=size(varargin),endfunction
16function y=%foo_e(name,ml),y=fun,endfunction 16function y=%foo_e(name,ml),y=fun,endfunction
17function y=%bar_e(name,ml),y=type,endfunction
17 18
18M=mlist(['foo']); 19M=mlist(['foo']);
20N=mlist(['bar']);
19M1=mlist(['foo','meth'],fun); 21M1=mlist(['foo','meth'],fun);
20 22
21[x,y]=M.meth(['hello' 'world']); 23[x,y]=M.meth(['hello' 'world']);
@@ -35,3 +37,8 @@ if or(x<>list('xx',1,2,3))|y<>4 then pause,end
35[x,y]=M1.meth('xx',1,2,3); 37[x,y]=M1.meth('xx',1,2,3);
36if or(x<>list('xx',1,2,3))|y<>4 then pause,end 38if or(x<>list('xx',1,2,3))|y<>4 then pause,end
37 39
40// extraction returns a built-in
41t=N.foo(123);
42if (t<>1) then pause, end
43t=N.foo(['a' 'b']);
44if (t<>10) then pause, end \ No newline at end of file