summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorIan Phillipps <Ian.Phillipps@iname.com>1999-07-12 13:30:05 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-07-17 18:23:55 +0000
commit7bb043c358def186b952b465c24a2249d64f519e (patch)
treeda1efa1cb1ce023c38c9f71afb98172601810a85 /t
parentd5a9bfb0fc8643b1208bad4f15e3c88ef46b4160 (diff)
downloadperl-7bb043c358def186b952b465c24a2249d64f519e.tar.gz
fix vec() on magic values
Message-ID: <19990712123005.A11355@homer.diplex.co.uk> Subject: [PATCH 5.005_57] Re: do_vecset is broken. Re: [ID 19990703.003]. p4raw-id: //depot/perl@3680
Diffstat (limited to 't')
-rwxr-xr-xt/op/tie.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/op/tie.t b/t/op/tie.t
index daec685d8d..49f07d4d2d 100755
--- a/t/op/tie.t
+++ b/t/op/tie.t
@@ -166,3 +166,15 @@ sub Self::DESTROY { $b = $_[0] + 0; }
}
die unless $a == $b;
EXPECT
+########
+# Interaction of tie and vec
+
+my ($a, $b);
+use Tie::Scalar;
+tie $a,Tie::StdScalar or die;
+vec($b,1,1)=1;
+$a = $b;
+vec($a,1,1)=0;
+vec($b,1,1)=0;
+die unless $a eq $b;
+EXPECT