This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the test case from perl #9728.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 28 Nov 2002 19:07:20 +0000 (19:07 +0000)
committerJarkko 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

index 5897b2b..596f17b 100755 (executable)
@@ -1,6 +1,6 @@
 #!./perl
 
-print "1..46\n";
+print "1..47\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";
+}