Skip to content

Commit dd81b0c

Browse files
committed
Adding unittest
1 parent 92b3ad9 commit dd81b0c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

test/Optimizer/rlexe.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,12 @@
14771477
<compile-flags>-off:aggressiveinttypespec</compile-flags>
14781478
</default>
14791479
</test>
1480+
<test>
1481+
<default>
1482+
<files>test148.js</files>
1483+
<compile-flags>-mic:1 -off:simplejit</compile-flags>
1484+
</default>
1485+
</test>
14801486
<test>
14811487
<default>
14821488
<files>IsIn_ArrayNoMissingValues.js</files>

test/Optimizer/test148.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
6+
function test0() {
7+
var obj0 = {};
8+
var func1 = function () {
9+
return 'caller';
10+
};
11+
var func3 = function () {
12+
};
13+
obj0.method1 = func1;
14+
var ary = Array();
15+
var __loopvar1 = 9;
16+
for (;;) {
17+
if (__loopvar1 > 9) {
18+
break;
19+
}
20+
__loopvar1++;
21+
var uniqobj12 = { 13: ((func3.call(obj0.method1(), 'caller')), func1()) };
22+
}
23+
'' + ary.slice();
24+
}
25+
test0();
26+
test0();
27+
print("passed");

0 commit comments

Comments
 (0)