summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-18 18:02:17 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-18 18:02:17 +0000
commit0523e7729c1696cddae5b22a83ca24802e14568e (patch)
tree667cf2005a1eb25475981cab60010cb03bd2f351 /t
parent91c526f1235221f5e83d86869c581e2e41a43b47 (diff)
downloadperl-0523e7729c1696cddae5b22a83ca24802e14568e.tar.gz
Change 26410 caused a regression, with the RVALUE return value of
method calls now failing if bound to a global match. Add a TODO test. p4raw-id: //depot/perl@26904
Diffstat (limited to 't')
-rwxr-xr-xt/op/pat.t15
1 files changed, 13 insertions, 2 deletions
diff --git a/t/op/pat.t b/t/op/pat.t
index ced35e3fea..2f71f8a7c3 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -6,7 +6,7 @@
$| = 1;
-print "1..1195\n";
+print "1..1196\n";
BEGIN {
chdir 't' if -d 't';
@@ -3423,5 +3423,16 @@ ok(("foba ba$s" =~ qr/(foo|BaSS|bar)/i)
"# assigning to original string should not corrupt match vars");
}
-# last test 1195
+{
+ package wooosh;
+ sub gloople {
+ "!";
+ }
+ package main;
+
+ my $aeek = bless {}, 'wooosh';
+ eval {$aeek->gloople() =~ /(.)/g;};
+ ok($@ eq "", "# TODO 26410 caused a regression") or print "# $@\n";
+}
+# last test 1196