diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-21 22:42:17 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-21 22:42:17 +0000 |
commit | c46248c1e30fc825bdbf156de6310d2bdda7e263 (patch) | |
tree | 6b665dee75f3ec4e6da75ce0a0258a5b59c7e727 /t | |
parent | 248175870b24dd04bea0abf89f6b13929587b79b (diff) | |
download | perl-c46248c1e30fc825bdbf156de6310d2bdda7e263.tar.gz |
Test for #14795.
p4raw-id: //depot/perl@14822
Diffstat (limited to 't')
-rwxr-xr-x | t/op/pat.t | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index d112bcc0f6..9b4fb13932 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ $| = 1; -print "1..854\n"; +print "1..855\n"; BEGIN { chdir 't' if -d 't'; @@ -2667,3 +2667,19 @@ print "# some Unicode properties\n"; print "\x{400}AB" =~ /(?<=\x{400}.)B/ ? "ok 853\n" : "not ok 853\n"; print "\x{500\x{600}}B" =~ /(?<=\x{500}.)B/ ? "ok 854\n" : "not ok 854\n"; } + +{ + print "# [ID 20020124.005]\n"; + + # Fixed by #14795. + + $char = "\x{f00f}"; + $x = "$char b $char"; + + $x =~ s{($char)}{ + "c" =~ /d/; + "x"; + }ge; + + print $x eq "x b x" ? "ok 855\n" : "not ok 855\n"; +} |