Another ex-PVBM assert
[p5sagit/p5-mst-13.2.git] / t / op / gv.t
index bca84e7..5b04f87 100755 (executable)
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -12,7 +12,7 @@ BEGIN {
 use warnings;
 
 require './test.pl';
-plan( tests => 160 );
+plan( tests => 161 );
 
 # type coersion on assignment
 $foo = 'foo';
@@ -485,6 +485,15 @@ foreach my $value ([1,2,3], {1=>2}, *STDOUT{IO}, \&ok, *STDOUT{FORMAT}) {
     eval "`` if 0";
     is($@, '', "Can't trip up readpipe overloading");
 }
+
+{
+    die if exists $::{BONK};
+    $::{BONK} = \"powie";
+    *{"BONK"} = \&{"BONK"};
+    eval 'is(BONK(), "powie",
+             "Assigment works when glob created midway (bug 45607)"); 1'
+       or die $@;
+}
 __END__
 Perl
 Rules