summaryrefslogtreecommitdiff
path: root/t/comp/proto.t
diff options
context:
space:
mode:
Diffstat (limited to 't/comp/proto.t')
-rwxr-xr-xt/comp/proto.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/comp/proto.t b/t/comp/proto.t
index 2a4c9ccce5..6a59107ce7 100755
--- a/t/comp/proto.t
+++ b/t/comp/proto.t
@@ -16,7 +16,7 @@ BEGIN {
use strict;
-print "1..80\n";
+print "1..82\n";
my $i = 1;
@@ -403,3 +403,13 @@ sub foo2 ($\%);
eval q{ foo2 "s" };
print "not " unless $@ =~ /^Not enough/;
print "ok ", $i++, "\n";
+
+sub X::foo3;
+*X::foo3 = sub {'ok'};
+print "# $@not " unless eval {X->foo3} eq 'ok';
+print "ok ", $i++, "\n";
+
+sub X::foo4 ($);
+*X::foo4 = sub ($) {'ok'};
+print "not " unless X->foo4 eq 'ok';
+print "ok ", $i++, "\n";