This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #19048] has already been fixed; add its test.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 11 Dec 2002 20:13:30 +0000 (20:13 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 11 Dec 2002 20:13:30 +0000 (20:13 +0000)
p4raw-id: //depot/maint-5.8/perl@18291

t/op/subst.t

index ef0ae0a..797f241 100755 (executable)
@@ -7,7 +7,7 @@ BEGIN {
 }
 
 require './test.pl';
-plan( tests => 124 );
+plan( tests => 125 );
 
 $x = 'foo';
 $_ = "x";
@@ -494,9 +494,19 @@ SKIP: {
 $_ = 'aaaa';
 $r = 'x';
 $s = s/a(?{})/$r/g;
-is("<$_> <$s>", "<xxxx> <4>", "perl #7806");
+is("<$_> <$s>", "<xxxx> <4>", "[perl #7806]");
 
 $_ = 'aaaa';
 $s = s/a(?{})//g;
-is("<$_> <$s>", "<> <4>", "perl #7806");
+is("<$_> <$s>", "<> <4>", "[perl #7806]");
 
+# [perl #19048] Coredump in silly replacement
+{
+    local $^W = 0;
+    $_="abcdef\n";
+    s!.!!eg;
+    is($_, "\n", "[perl #19048]");
+}
+
+
+