This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make undef %overload:: test more likely to crash
authorFather Chrysostomos <sprout@cpan.org>
Fri, 7 Oct 2011 03:19:09 +0000 (20:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 7 Oct 2011 03:25:53 +0000 (20:25 -0700)
I think I omitted the blessing by mistake.  Taken alone, this
block does not crash in earlier versions without the bless.

lib/overload.t

index 2efc5aa..89d8af7 100644 (file)
@@ -2191,6 +2191,7 @@ fresh_perl_is
     use overload '+' => 'onion';
     $_ = \&overload::nil;
     undef %overload::;
+    bless[];
     ::ok(1, 'no crash when undefining %overload::');
 }