diff options
author | John Hawthorn <john@hawthorn.email> | 2021-07-08 23:33:55 -0700 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:41 -0400 |
commit | 9951a9a8ece77ad8aa2a8871b009e2f1fb776987 (patch) | |
tree | e0801f5fa4751acb9df44f2222f231051c833781 /bootstraptest | |
parent | 6055078b24ce9878aafad406fe72711311f9744f (diff) |
Implement invokebuiltin
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 8cb4432b6a..6d507e17d7 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -1210,6 +1210,18 @@ assert_equal 'foo123', %q{ make_str("foo", 123) } +# test invokebuiltin as used in struct assignment +assert_equal '123', %q{ + def foo(obj) + obj.foo = 123 + end + + struct = Struct.new(:foo) + obj = struct.new + foo(obj) + foo(obj) +} + # test invokebuiltin_delegate as used inside Dir.open assert_equal '.', %q{ def foo(path) |