summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_zjit.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstraptest/test_zjit.rb b/bootstraptest/test_zjit.rb
index a8c6c85c0f..45f4de8f44 100644
--- a/bootstraptest/test_zjit.rb
+++ b/bootstraptest/test_zjit.rb
@@ -20,3 +20,14 @@ assert_equal '[6, 3]', %q{
def test(a, b) = a + b
[test(2, 4), test(1, 2)]
}
+
+# Test argument ordering
+assert_equal '2', %q{
+ def test(a, b) = a - b
+ test(6, 4)
+}
+
+assert_equal '6', %q{
+ def test(a, b, c) = a + b + c
+ test(1, 2, 3)
+}