Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-475645-01.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var gTestfile = 'regress-475645-01.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 475645;
9 var summary = 'Do not crash @ nanojit::LIns::isop';
10 var actual = '';
11 var expect = '';
12
13
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
17
18 function test()
19 {
20 enterFunc ('test');
21 printBugNumber(BUGNUMBER);
22 printStatus (summary);
23
24 jit(true);
25
26 linkarr = new Array();
27 picarr = new Array();
28 textarr = new Array();
29 var f=161;
30 var t=27;
31 var pics = "";
32 var links = "";
33 var texts = "";
34 var s = f+t;
35 var d = "1";
36 picarr[2] = "2";
37 for(i=1;i<picarr.length;i++)
38 {
39 if(pics=="") pics = picarr[i];
40 else{
41 if(picarr[i].indexOf("jpg")==-1 && picarr[i].indexOf("JPG")==-1) picarr[i] = d;
42 }
43 }
44
45 jit(false);
46
47 reportCompare(expect, actual, summary);
48
49 exitFunc ('test');
50 }