Derek Morris 9 lat temu
rodzic
commit
7019f26842
2 zmienionych plików z 30 dodań i 0 usunięć
  1. 24 0
      test/Boolean/boolprop.js
  2. 6 0
      test/Boolean/rlexe.xml

+ 24 - 0
test/Boolean/boolprop.js

@@ -0,0 +1,24 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+function makeArrayLength() {
+}
+var obj0 = {};
+var e = -1022526546;
+var protoObj1 = Object();
+obj0.prop0 = -85489020;
+for (var v3 = 0; v3 < 2; v3++) {
+  (function () {
+    makeArrayLength(c = typeof protoObj1.prop1 == 'undefined');
+    for (var _strvar3 in obj0) {
+      obj0[_strvar3] = (e == protoObj1 || 4294967295 > protoObj1) != (c >>= protoObj1);
+    }
+  }());
+}
+if(obj0.prop0) {
+  print("PASSED");
+} else {
+  print("FAILED");
+}

+ 6 - 0
test/Boolean/rlexe.xml

@@ -36,4 +36,10 @@
       <compile-flags>-maxsimplejitruncount:4 -maxinterpretcount:3</compile-flags>
     </default>
   </test>
+  <test>
+    <default>
+      <files>boolprop.js</files>
+      <compile-flags>-loopinterpretcount:1 -bgjit- -maxsimplejitruncount:2 -maxinterpretcount:1 -off:simplejit -off:lossyinttypespec</compile-flags>
+    </default>
+  </test>
 </regress-exe>