Index: test/mjsunit/compiler/opt-next-call.js |
diff --git a/test/mjsunit/regress/regress-347542.js b/test/mjsunit/compiler/opt-next-call.js |
similarity index 72% |
copy from test/mjsunit/regress/regress-347542.js |
copy to test/mjsunit/compiler/opt-next-call.js |
index 901d798fb7fbea45f0d9f3d8ba6c7a9846bf6dd6..6366c7d72e3d7f69662dfcab858ce5b09b29da81 100644 |
--- a/test/mjsunit/regress/regress-347542.js |
+++ b/test/mjsunit/compiler/opt-next-call.js |
@@ -4,8 +4,10 @@ |
// Flags: --allow-natives-syntax |
-function foo() {} |
-foo(); |
+function foo() { |
+ return "fooed"; |
+} |
+ |
%OptimizeFunctionOnNextCall(foo); |
-foo(); |
-%NeverOptimizeFunction(foo); |
+assertEquals("fooed", foo()); |
+assertOptimized(foo); |