This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: Fix to enable XIDS property in early Unicode releases
[perl5.git] / lib / dumpvar.t
index 69ec3b2..f4f55d9 100644 (file)
@@ -49,6 +49,11 @@ sub new { my $class = shift; bless [ @_ ], $class }
 
 use overload '""' => sub { "Bar<@{$_[0]}>" };
 
+package Tyre;
+
+sub TIESCALAR{bless[]}
+# other methods intentionally omitted
+
 package main;
 
 my $foo = Foo->new(1..5);
@@ -318,3 +323,11 @@ EXPECT
 dumpvalue(bless[1,2,3,4],"a=b=c");
 EXPECT
 /0  a=b=c=ARRAY\(0x[0-9a-f]+\)\n   0  1\n   1  2\n   2  3\n   3  4\n/i
+########
+local *_; tie $_, 'Tyre'; stringify('');
+EXPECT
+''
+########
+local *_; tie $_, 'Tyre'; unctrl('abc');
+EXPECT
+abc