summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1979.sci
blob: 4638b9bb18bf27869870bf04326bf3123396de84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// <-- Non-regression test for bug 1979 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1979
//
// <-- Short Description -->
//    I think that something is forgotten in the integer treatment in Scilab :
//
//    -->a=int32(1);b=int32(6);
//    -->a:b
//    a:b
//        !--error 4
//    undefined variable : %i_b_i

// Copyright INRIA
// Scilab Project - Pierre MARECHAL
// Copyright INRIA 2006
// Date : 23 mai 2006

a = int32(1);
b = int32(6);
c = a:b;
d = int32([1 2 3 4 5 6]);

if  and( c == d ) then
	affich_result(%T,1979);
else
	affich_result(%F,1979);
end