summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1772.sci
blob: 63475041d97c713480ed1909c61a9869cbb1f944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// <-- Non-regression test for bug 1772 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1772
//
// <-- Short Description -->
//    There is a problem while inserting an object of type list in an undefined struct
//    field

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

S.x=1;
ok=%t
try
  S.y.z=list()	
catch
  ok=%f
end
if ok then ok=S.y.z==list(),end
affich_result(ok,1772);