summaryrefslogtreecommitdiff
path: root/t/op/lexsub.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/lexsub.t')
-rw-r--r--t/op/lexsub.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/op/lexsub.t b/t/op/lexsub.t
index b1b76e84c3..adccf4c5db 100644
--- a/t/op/lexsub.t
+++ b/t/op/lexsub.t
@@ -961,3 +961,9 @@ like runperl(
@AutoloadTest::ISA = AutoloadTestSuper::;
AutoloadTest->blah;
}
+
+# This used to crash because op.c:find_lexical_cv was looking at the wrong
+# CV’s OUTSIDE pointer. [perl #124099]
+{
+ my sub h; sub{my $x; sub{h}}
+}