Add prototype to pure-perl pre-5.14 version
[p5sagit/Devel-GlobalDestruction.git] / t / 01_basic.t
index c16cab3..ac7f07a 100644 (file)
@@ -19,7 +19,7 @@ BEGIN {
     sub DESTROY { my $self = shift; $self->[0]->() }
 }
 
-print "1..4\n";
+print "1..6\n";
 
 my $had_error = 0;
 END { $? = $had_error };
@@ -34,6 +34,10 @@ ok( eval "use Devel::GlobalDestruction; 1", "use Devel::GlobalDestruction" );
 
 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" ) });