summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-03-02 13:23:22 +0000
committerNicholas Clark <nick@ccl4.org>2007-03-02 13:23:22 +0000
commit06be3b4087230d77129ccda5ba56e0397c241c48 (patch)
treee4438740be1387d81019216101a5fb6aca5e60d1 /t
parent97f820fb1a463793ff94e5a914471dd9b45ed010 (diff)
downloadperl-06be3b4087230d77129ccda5ba56e0397c241c48.tar.gz
Don't crash if the symbol table entry for ISA isn't a typeglob.
p4raw-id: //depot/perl@30442
Diffstat (limited to 't')
-rwxr-xr-xt/op/gv.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index d243fb70a3..4475912f53 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -12,7 +12,7 @@ BEGIN {
use warnings;
require './test.pl';
-plan( tests => 154 );
+plan( tests => 155 );
# type coersion on assignment
$foo = 'foo';
@@ -453,6 +453,12 @@ foreach my $value ([1,2,3], {1=>2}, *STDOUT{IO}, \&ok, *STDOUT{FORMAT}) {
"PERL_DONT_CREATE_GVSV shouldn't affect thingy syntax under strict");
}
+{
+ # Bug reported by broquaint on IRC
+ *slosh::{HASH}->{ISA}=[];
+ slosh->import;
+ pass("gv_fetchmeth coped with the unexpected");
+}
__END__
Perl
Rules