Fix test added in change 23645 with an eval()
[p5sagit/p5-mst-13.2.git] / t / op / substr.t
index 08f4165..9549d29 100755 (executable)
@@ -1,6 +1,6 @@
 #!./perl
 
-print "1..189\n";
+print "1..190\n";
 
 #P = start of string  Q = start of substr  R = end of substr  S = end of string
 
@@ -651,3 +651,10 @@ ok 174, $x eq "\x{100}\x{200}\xFFb";
     ok 189, substr($text,$pos,1) eq $pos;
 
 }
+
+# [perl #23765]
+{
+    my $a = pack("C", 0xbf);
+    substr($a, -1) &= chr(0xfeff);
+    ok 190, $a eq "\xbf";
+}