Re: [perl #50322] CGITempFile causes "Insecure dependency in sprintf" in perl 5.10.0
[p5sagit/p5-mst-13.2.git] / lib / base / t / isa.t
CommitLineData
00ed247a 1#!/usr/bin/perl -w
2
3# Regression test some quirky behavior of base.pm.
4
5BEGIN {
6 if( $ENV{PERL_CORE} ) {
7 chdir 't' if -d 't';
8 @INC = qw(../lib);
9 }
10}
11
12use strict;
13use Test::More tests => 1;
14
15{
16 package Parent;
17
18 sub foo { 42 }
19
20 package Middle;
21
22 use base qw(Parent);
23
24 package Child;
25
26 base->import(qw(Middle Parent));
27}
28
29is_deeply [@Child::ISA], [qw(Middle)],
30 'base.pm will not add to @ISA if you already are-a';