summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/ion/bug677774-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug677774-1.js')
-rw-r--r--js/src/jit-test/tests/ion/bug677774-1.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug677774-1.js b/js/src/jit-test/tests/ion/bug677774-1.js
new file mode 100644
index 0000000000..412060be52
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug677774-1.js
@@ -0,0 +1,16 @@
+function min(a, b) {
+
+ if (a < b) {
+ return a;
+ }
+ else {
+ return b;
+ }
+}
+
+assertEq(min(6, 5), 5);
+assertEq(min(42, 1337), 42);
+assertEq(min(-12, 6), -12)
+assertEq(min(5, -6), -6)
+assertEq(min(-3, -2), -3)
+assertEq(min(-5, -6), -6)