summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
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.dia.ref
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.dia.ref')
-rw-r--r--scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref9
1 files changed, 8 insertions, 1 deletions
diff --git a/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref b/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
index 763e20f..9cfd2c6 100644
--- a/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
+++ b/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
@@ -10,10 +10,12 @@
10// http://bugzilla.scilab.org/show_bug.cgi?id=6792 10// http://bugzilla.scilab.org/show_bug.cgi?id=6792
11// 11//
12// <-- Short Description --> 12// <-- Short Description -->
13// mis-interpretation of macro arguments when the macro call appears in an list extraction 13// mis-interpretation of macro arguments when the macro call appears in an list extraction
14function [x,y]=fun(varargin), x=varargin,y=size(varargin),endfunction 14function [x,y]=fun(varargin), x=varargin,y=size(varargin),endfunction
15function y=%foo_e(name,ml),y=fun,endfunction 15function y=%foo_e(name,ml),y=fun,endfunction
16function y=%bar_e(name,ml),y=type,endfunction
16M=mlist(['foo']); 17M=mlist(['foo']);
18N=mlist(['bar']);
17M1=mlist(['foo','meth'],fun); 19M1=mlist(['foo','meth'],fun);
18[x,y]=M.meth(['hello' 'world']); 20[x,y]=M.meth(['hello' 'world']);
19if or(x<>list(['hello' 'world']))|y<>1 then bugmes();quit;end 21if or(x<>list(['hello' 'world']))|y<>1 then bugmes();quit;end
@@ -27,3 +29,8 @@ if or(x<>list('xx',list(1,2,3)))|y<>2 then bugmes();quit;end
27if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end 29if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end
28[x,y]=M1.meth('xx',1,2,3); 30[x,y]=M1.meth('xx',1,2,3);
29if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end 31if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end
32// extraction returns a built-in
33t=N.foo(123);
34if (t<>1) then bugmes();quit;end
35t=N.foo(['a' 'b']);
36if (t<>10) then bugmes();quit;end