Blame t/destroy.t

Packit 14c646
# [perl #118139] crash in global destruction when accessing the freed cxt.
Packit 14c646
use Test::More tests => 1;
Packit 14c646
use Storable;
Packit 14c646
BEGIN {
Packit 14c646
  store {}, "foo";
Packit 14c646
}
Packit 14c646
package foo;
Packit 14c646
sub new { return bless {} }
Packit 14c646
DESTROY {
Packit 14c646
  open FH, '<', "foo" or die $!;
Packit 14c646
  eval { Storable::pretrieve(*FH); };
Packit 14c646
  close FH or die $!;
Packit 14c646
  unlink "foo";
Packit 14c646
}
Packit 14c646
Packit 14c646
package main;
Packit 14c646
# print "# $^X\n";
Packit 14c646
$x = foo->new();
Packit 14c646
Packit 14c646
ok(1);