summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1794.sci
blob: e01ac735e320ca1a19570809c1eb4b69526b829d (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
30
31
32
33
34
// <-- Non-regression test for bug 1794 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1794
//
// <-- Short Description -->
//    Problem encountered when redefining builtin function

// Copyright INRIA
// Scilab Project - Serge Steer
// Copyright INRIA 2005
// Date : 30 janvier 2006

beta=5;
try
  beta
  ok1=%t;
catch
  ok1=%f;
end

function y=foo()
  beta;
  y=beta+1
endfunction

try
 foo()
  ok2=%t;
catch
  ok2=%f;
end

affich_result(ok1&ok2,1794);