Index: test/mjsunit/compiler/opt-next-call.js |
diff --git a/test/mjsunit/compiler/opt-next-call.js b/test/mjsunit/compiler/opt-next-call.js |
index 6366c7d72e3d7f69662dfcab858ce5b09b29da81..3d7e74f62660d15524a3930b08892b9e951a53b1 100644 |
--- a/test/mjsunit/compiler/opt-next-call.js |
+++ b/test/mjsunit/compiler/opt-next-call.js |
@@ -11,3 +11,12 @@ function foo() { |
%OptimizeFunctionOnNextCall(foo); |
assertEquals("fooed", foo()); |
assertOptimized(foo); |
+ |
+function bar() { |
+ return "bared"; |
+} |
+ |
+assertEquals("bared", bar()); |
+%OptimizeFunctionOnNextCall(bar); |
+assertEquals("bared", bar()); |
+assertOptimized(bar); |