This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe0f10
)
Add the test case from perl #9728.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 28 Nov 2002 19:07:20 +0000
(19:07 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 28 Nov 2002 19:07:20 +0000
(19:07 +0000)
p4raw-id: //depot/maint-5.8/perl@18209
t/op/eval.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/eval.t
b/t/op/eval.t
index
5897b2b
..
596f17b
100755
(executable)
--- a/
t/op/eval.t
+++ b/
t/op/eval.t
@@
-1,6
+1,6
@@
#!./perl
-print "1..4
6
\n";
+print "1..4
7
\n";
eval 'print "ok 1\n";';
@@
-241,3
+241,10
@@
print $@;
eval q{};
print length($@) ? "not ok 46\t# \$\@ = '$@'\n" : "ok 46\n";
}
+
+# [perl #9728] used to dump core
+{
+ $eval = eval 'sub { eval "sub { %S }" }';
+ $eval->({});
+ print "ok 47\n";
+}