summaryrefslogtreecommitdiffstats
path: root/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
diff options
context:
space:
mode:
authorSerge Steer <serge.steer@scilab.org>2010-03-22 11:31:58 +0100
committerSerge Steer <serge.steer@scilab.org>2010-03-22 11:31:58 +0100
commite221259a66f2cf8b43b81fd916abf0a6a8b88c8e (patch)
tree4eced3097f3a2559396487dad4d112dfa0bfac14 /scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
parent5ae97a6f56abe4c253dbabfb33babdff7b4a6e53 (diff)
downloadscilab-e221259a66f2cf8b43b81fd916abf0a6a8b88c8e.zip
scilab-e221259a66f2cf8b43b81fd916abf0a6a8b88c8e.tar.gz
bug 6792 fix
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.ref29
1 files changed, 29 insertions, 0 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
new file mode 100644
index 0000000..763e20f
--- /dev/null
+++ b/scilab/modules/data_structures/tests/nonreg_tests/bug_6792.dia.ref
@@ -0,0 +1,29 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - INRIA -Serge.Steer@inria.fr
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7// <-- Non-regression test for bug 6792 -->
8//
9// <-- Bugzilla URL -->
10// http://bugzilla.scilab.org/show_bug.cgi?id=6792
11//
12// <-- Short Description -->
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
15function y=%foo_e(name,ml),y=fun,endfunction
16M=mlist(['foo']);
17M1=mlist(['foo','meth'],fun);
18[x,y]=M.meth(['hello' 'world']);
19if or(x<>list(['hello' 'world']))|y<>1 then bugmes();quit;end
20[x,y]=M1.meth(['hello' 'world']);
21if or(x<>list(['hello' 'world']))|y<>1 then bugmes();quit;end
22[x,y]=M.meth('xx',list(1,2,3));
23if or(x<>list('xx',list(1,2,3)))|y<>2 then bugmes();quit;end
24[x,y]=M1.meth('xx',list(1,2,3));
25if or(x<>list('xx',list(1,2,3)))|y<>2 then bugmes();quit;end
26[x,y]=M.meth('xx',1,2,3);
27if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end
28[x,y]=M1.meth('xx',1,2,3);
29if or(x<>list('xx',1,2,3))|y<>4 then bugmes();quit;end