diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/-ext-/debug/test_profile_frames.rb | 17 |
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 860652c0cd..5ea506046e 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 |