summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/fused-eq-ifeq.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/fused-eq-ifeq.js')
-rw-r--r--js/src/jit-test/tests/jaeger/fused-eq-ifeq.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/fused-eq-ifeq.js b/js/src/jit-test/tests/jaeger/fused-eq-ifeq.js
new file mode 100644
index 0000000000..b5d2bf2f61
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/fused-eq-ifeq.js
@@ -0,0 +1,6 @@
+function ack(m,n){
+ if (m==0) { return n+1; }
+ if (n==0) { return ack(m-1,1); }
+ return ack(m-1, ack(m,n-1) );
+}
+assertEq(ack(3, 3), 61);