summaryrefslogtreecommitdiff
path: root/t/op/misc.t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-11 18:11:22 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-11 18:11:22 +0000
commit1d76a5c36fe33e7755afd0f03faf19826beda303 (patch)
treeb465978813ba48e23662c45b02420d15e7ae2de7 /t/op/misc.t
parent6b7b8867bcd9dae4737a0f8210ca9785c63634b8 (diff)
downloadperl-1d76a5c36fe33e7755afd0f03faf19826beda303.tar.gz
change#3511 was not defensive enough about try blocks, causing
bogus attempts to free closures, and thence, segfaults p4raw-link: @3511 on //depot/perl: 067f92a0e46641b4b3e89afcde43bf134105f7b7 p4raw-id: //depot/perl@5658
Diffstat (limited to 't/op/misc.t')
-rwxr-xr-xt/op/misc.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index a595694e9b..501efba0a7 100755
--- a/t/op/misc.t
+++ b/t/op/misc.t
@@ -508,3 +508,10 @@ else {
}
EXPECT
Use of uninitialized value in numeric eq (==) at - line 4.
+########
+$x = sub {};
+foo();
+sub foo { eval { return }; }
+print "ok\n";
+EXPECT
+ok