diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/op/misc.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t index 4b4d8031d4..e5af756014 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -706,3 +706,21 @@ Execution of - aborted due to compilation errors. EXPECT Missing right brace on \x{} at - line 2, within string Execution of - aborted due to compilation errors. +######## +my $foo = Bar->new(); +my @dst; +END { + ($_ = "@dst") =~ s/\(0x.+?\)/(0x...)/; + print $_, "\n"; +} +package Bar; +sub new { + my Bar $self = bless [], Bar; + eval '$self'; + return $self; +} +sub DESTROY { + push @dst, "$_[0]"; +} +EXPECT +Bar=ARRAY(0x...) |