diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-02-10 19:57:06 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:28 -0400 |
commit | 3d026adb613f2e27a5c84f3db8f5ddc6896ba5a3 (patch) | |
tree | 04952316760755e641fe983c84e01eb5232df5e2 /bootstraptest | |
parent | a267f45502358114fa37b0390f894eb480624b67 (diff) |
Add failing test identified by Aaron Patterson
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_ujit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_ujit.rb b/bootstraptest/test_ujit.rb index 13cb81d368..0894a1b4e2 100644 --- a/bootstraptest/test_ujit.rb +++ b/bootstraptest/test_ujit.rb @@ -1,3 +1,15 @@ +# Putobject, less-than operator, fixnums +assert_equal '2', %q{ + def check_index(index) + if 0x40000000 < index + raise "wat? #{index}" + end + index + end + check_index 2 + check_index 2 +} + # Method redefinition (code invalidation) test assert_equal '1', %q{ def ret1 |