summaryrefslogtreecommitdiff
path: root/test/-ext-/debug/test_profile_frames.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/debug/test_profile_frames.rb')
-rw-r--r--test/-ext-/debug/test_profile_frames.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb
index 860652c..5ea5060 100644
--- a/test/-ext-/debug/test_profile_frames.rb
+++ b/test/-ext-/debug/test_profile_frames.rb
@@ -102,4 +102,21 @@ class TestProfileFrames < Test::Unit::TestCase
end
}
end
+
+ def test_ifunc_frame
+ bug11851 = '[ruby-core:72409] [Bug #11851]'
+ assert_ruby_status([], <<~'end;', bug11851) # do
+ require '-test-/debug'
+ class A
+ include Bug::Debug
+ def x
+ profile_frames(0, 10)
+ end
+ end
+ def a
+ [A.new].each(&:x)
+ end
+ a
+ end;
+ end
end