This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document string- and number-specific bitops in perlop
[perl5.git] / dist / Storable / t / destroy.t
CommitLineData
3c1b273b
NC
1# [perl #118139] crash in global destruction when accessing the freed cxt.
2use Test::More tests => 1;
f17010da
RU
3use Storable;
4BEGIN {
f17010da
RU
5 store {}, "foo";
6}
7package foo;
8sub new { return bless {} }
9DESTROY {
3c1b273b
NC
10 open FH, "<foo" or die $!;
11 eval { Storable::pretrieve(*FH); };
12 close FH or die $!;
f17010da
RU
13 unlink "foo";
14}
15
16package main;
17# print "# $^X\n";
18$x = foo->new();
19
20ok(1);