summaryrefslogtreecommitdiff
path: root/ext/base/t/isa.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/base/t/isa.t')
-rw-r--r--ext/base/t/isa.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/base/t/isa.t b/ext/base/t/isa.t
new file mode 100644
index 0000000000..bd5ee7fc3c
--- /dev/null
+++ b/ext/base/t/isa.t
@@ -0,0 +1,23 @@
+#!/usr/bin/perl -w
+
+# Regression test some quirky behavior of base.pm.
+
+use strict;
+use Test::More tests => 1;
+
+{
+ package Parent;
+
+ sub foo { 42 }
+
+ package Middle;
+
+ use base qw(Parent);
+
+ package Child;
+
+ base->import(qw(Middle Parent));
+}
+
+is_deeply [@Child::ISA], [qw(Middle)],
+ 'base.pm will not add to @ISA if you already are-a';