summaryrefslogtreecommitdiffstats
path: root/t/edge-cases.t
diff options
context:
space:
mode:
Diffstat (limited to 't/edge-cases.t')
-rwxr-xr-xt/edge-cases.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/edge-cases.t b/t/edge-cases.t
index d1e5182..262c13b 100755
--- a/t/edge-cases.t
+++ b/t/edge-cases.t
@@ -80,4 +80,13 @@ SKIP: {
);
}
+{
+ my $warning;
+ local $SIG{__WARN__} = sub { $warning = $_[0] };
+ my $stash = Package::Stash->new('Bar');
+ $stash->add_symbol('&foo' => sub { });
+ $stash->add_symbol('&foo' => sub { });
+ is($warning, undef, "no redefinition warnings");
+}
+
done_testing;