This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef2424
)
belatedly add a test for RT #51636:
author
David Mitchell
<davem@iabyn.com>
Fri, 4 Jun 2010 20:16:48 +0000
(21:16 +0100)
committer
David Mitchell
<davem@iabyn.com>
Fri, 4 Jun 2010 20:16:48 +0000
(21:16 +0100)
segmentation fault with array ties
t/op/tie.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/tie.t
b/t/op/tie.t
index
281c0d9
..
ad3031a
100644
(file)
--- a/
t/op/tie.t
+++ b/
t/op/tie.t
@@
-897,3
+897,19
@@
fetching... *{}
fetching... @{}
fetching... %{}
fetching... ${}
+########
+# RT 51636: segmentation fault with array ties
+
+tie my @a, 'T';
+@a = (1);
+print "ok\n"; # if we got here we didn't crash
+
+package T;
+
+sub TIEARRAY { bless {} }
+sub STORE { tie my @b, 'T' }
+sub CLEAR { }
+sub EXTEND { }
+
+EXPECT
+ok