summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug2399.sci
blob: 48f10106d289c9cb29f823060cd87d8bed448251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// <-- Non-regression test for bug 2399 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2399
//
// <-- Short Description -->
//    msscanf crashes scilab when scanning a vector of strings for float 
//    values on Linux.

// Author : Scilab Project - Pierre MARECHAL
// Copyright INRIA
// Date : 05 mai 2007

toks = ['noddy';'holden'];
vals = msscanf(-1,toks,'%f');

if( vals == [] ) then
	affich_result(%T,2399);
else
	affich_result(%F,2399);
end