Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_5 / Regress / regress-406769.js
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  * http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * The Original Code is JavaScript Engine testing utilities.
16  *
17  * The Initial Developer of the Original Code is
18  * Mozilla Foundation.
19  * Portions created by the Initial Developer are Copyright (C) 2007
20  * the Initial Developer. All Rights Reserved.
21  *
22  * Contributor(s): Gavin Sharp
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPL"), or
26  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27  * in which case the provisions of the GPL or the LGPL are applicable instead
28  * of those above. If you wish to allow use of your version of this file only
29  * under the terms of either the GPL or the LGPL, and not to allow others to
30  * use your version of this file under the terms of the MPL, indicate your
31  * decision by deleting the provisions above and replace them with the notice
32  * and other provisions required by the GPL or the LGPL. If you do not delete
33  * the provisions above, a recipient may use your version of this file under
34  * the terms of any one of the MPL, the GPL or the LGPL.
35  *
36  * ***** END LICENSE BLOCK ***** */
37
38 //-----------------------------------------------------------------------------
39 var BUGNUMBER = 406769;
40 var summary = 'Regression from bug 398609 caused infinite loop';
41 var actual = '';
42 var expect = '';
43
44 //-----------------------------------------------------------------------------
45 test();
46 //-----------------------------------------------------------------------------
47
48 function test()
49 {
50   enterFunc ('test');
51   printBugNumber(BUGNUMBER);
52   printStatus (summary);
53
54 var a0;
55 var a1;
56 var a2;
57 var a3;
58 var a4;
59 var a5;
60 var a6;
61 var a7;
62 var a8;
63 var a9;
64 var a10;
65 var a11;
66 var a12;
67 var a13;
68 var a14;
69 var a15;
70 var a16;
71 var a17;
72 var a18;
73 var a19;
74 var a20;
75 var a21;
76 var a22;
77 var a23;
78 var a24;
79 var a25;
80 var a26;
81 var a27;
82 var a28;
83 var a29;
84 var a30;
85 var a31;
86 var a32;
87 var a33;
88 var a34;
89 var a35;
90 var a36;
91 var a37;
92 var a38;
93 var a39;
94 var a40;
95 var a41;
96 var a42;
97 var a43;
98 var a44;
99 var a45;
100 var a46;
101 var a47;
102 var a48;
103 var a49;
104 var a50;
105 var a51;
106 var a52;
107 var a53;
108 var a54;
109 var a55;
110 var a56;
111 var a57;
112 var a58;
113 var a59;
114 var a60;
115 var a61;
116 var a62;
117 var a63;
118 var a64;
119 var a65;
120 var a66;
121 var a67;
122 var a68;
123 var a69;
124 var a70;
125 var a71;
126 var a72;
127 var a73;
128 var a74;
129 var a75;
130 var a76;
131 var a77;
132 var a78;
133 var a79;
134 var a80;
135 var a81;
136 var a82;
137 var a83;
138 var a84;
139 var a85;
140 var a86;
141 var a87;
142 var a88;
143 var a89;
144 var a90;
145 var a91;
146 var a92;
147 var a93;
148 var a94;
149 var a95;
150 var a96;
151 var a97;
152 var a98;
153 var a99;
154 var a100;
155 var a101;
156 var a102;
157 var a103;
158 var a104;
159 var a105;
160 var a106;
161 var a107;
162 var a108;
163 var a109;
164 var a110;
165 var a111;
166 var a112;
167 var a113;
168 var a114;
169 var a115;
170 var a116;
171 var a117;
172 var a118;
173 var a119;
174 var a120;
175 var a121;
176 var a122;
177 var a123;
178 var a124;
179 var a125;
180 for (var a126 = 1; a126 < ([1,2,3]).length -1; ++a126)
181     1;
182
183  
184   reportCompare(expect, actual, summary);
185
186   exitFunc ('test');
187 }