aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-11 13:07:16 -0700
committerGitHub <noreply@github.com>2023-08-11 13:07:16 -0700
commit02e5095108e2ce38815fa9957619ed0a1cad4173 (patch)
treecb41a21ab3ec220a719d15c7519bc813f3e7e2a2 /bootstraptest
parentd42891079f6eac5e086c246b0a937ab44fa11823 (diff)
downloadruby-02e5095108e2ce38815fa9957619ed0a1cad4173.tar.gz
YJIT: Implement GET_BLOCK_HANDLER() for invokesuper (#8206)
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index f90cece848..d87454c38c 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -4026,3 +4026,15 @@ assert_equal '1', %q{
entry
}
+
+assert_equal '6', %q{
+ class Base
+ def number = 1 + yield
+ end
+
+ class Sub < Base
+ def number = super + 2
+ end
+
+ Sub.new.number { 3 }
+}