Objects formed from certain Moo+Moose combinations will explode in
global destruction if they are kept alive by being stored in a package
variable or closed over by a sub.
--- /dev/null
+use strictures;
+use lib 'lib';
+{
+ package BaseClass;
+ use Moo;
+}
+{
+ package Subclass;
+ use Moose;
+ extends 'BaseClass';
+ __PACKAGE__->meta->make_immutable;
+}
+{
+ package Blorp;
+ use Moo;
+ extends 'Subclass';
+}
+our $o = Blorp->new;
--- /dev/null
+use strictures 1;
+use Test::More;
+
+my $out = `$^X xt/global-destruct-jenga-helper.pl 2>&1`;
+is $out, '', 'no errors from global destruct of jenga object';
+
+done_testing;