sub DESTROY { my $self = shift; $self->[0]->() }
}
-print "1..4\n";
+print "1..6\n";
my $had_error = 0;
END { $? = $had_error };
ok( defined &in_global_destruction, "exported" );
+ok( defined prototype \&in_global_destruction, "defined prototype" );
+
+ok( prototype \&in_global_destruction eq "", "empty prototype" );
+
ok( !in_global_destruction(), "not in GD" );
our $sg = Test::Scope::Guard->new(sub { ok( in_global_destruction(), "in GD" ) });