summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-01 20:06:53 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:05 -0700
commit16307adf8f0cde3a9383e6c7e39fc718ebc89b42 (patch)
tree3fb3b896cc81531a3ece54771fd2db4f92e27473 /bootstraptest
parent45da6974500070872a2b20fafe2b50bc1dce1052 (diff)
Port only ATTRSET of opt_send_without_block (https://github.com/Shopify/ruby/pull/351)
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index d82f3de95e..2f8c6a8f18 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -3074,3 +3074,16 @@ assert_equal 'false', %q{
end
function()
}
+
+# opt_send_without_block (VM_METHOD_TYPE_ATTRSET)
+assert_equal 'foo', %q{
+ class Foo
+ attr_writer :foo
+
+ def foo()
+ self.foo = "foo"
+ end
+ end
+ foo = Foo.new
+ foo.foo
+}