Index: test/mjsunit/regress/regress-3865.js |
diff --git a/test/mjsunit/regress/regress-451322.js b/test/mjsunit/regress/regress-3865.js |
similarity index 68% |
copy from test/mjsunit/regress/regress-451322.js |
copy to test/mjsunit/regress/regress-3865.js |
index b7794f52f06081f1d047638ef42364a619a6c863..0d1d02f00da3c070b157607a112f3f09bf0756a9 100644 |
--- a/test/mjsunit/regress/regress-451322.js |
+++ b/test/mjsunit/regress/regress-3865.js |
@@ -4,14 +4,11 @@ |
// Flags: --allow-natives-syntax |
-var foo = 0; |
- |
function bar() { |
- var baz = 0 - {}; |
- if (foo > 24) return baz * 0; |
+ var radix = 10; |
+ return 21 / radix | 0; |
} |
- |
-bar(); |
-bar(); |
+assertEquals(2, bar()); |
+assertEquals(2, bar()); |
%OptimizeFunctionOnNextCall(bar); |
-bar(); |
+assertEquals(2, bar()); |