diff options
author | Kevin Deisz <kevin.deisz@gmail.com> | 2021-07-06 16:26:56 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:37 -0400 |
commit | ba9aa1f8efb77c6cf58ec4ea6bb81ced17acbc2b (patch) | |
tree | 4efd2fd8946b958717d236858647e4ea22594d50 /bootstraptest | |
parent | b0ae4fdcfbe0004908adcc44f0ae0e3a3762917b (diff) |
Implement opt_div
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 14b901fbf1..7fe637a86b 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -36,6 +36,16 @@ assert_equal '12', %q{ mult(6, 2) } +# Test for opt_div +assert_equal '3', %q{ + def div(a, b) + a / b + end + + div(6, 2) + div(6, 2) +} + # BOP redefined methods work when JIT compiled assert_equal 'false', %q{ def less_than x |