summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
Diffstat (limited to 't/op')
-rw-r--r--t/op/local.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/op/local.t b/t/op/local.t
index 1f36a7354b..d93306f0b0 100644
--- a/t/op/local.t
+++ b/t/op/local.t
@@ -5,7 +5,7 @@ BEGIN {
@INC = qw(. ../lib);
require './test.pl';
}
-plan tests => 306;
+plan tests => 307;
my $list_assignment_supported = 1;
@@ -792,11 +792,15 @@ like( runperl(stderr => 1,
'index(q(a), foo);' .
'local *g=${::}{foo};print q(ok);'), "ok", "[perl #52740]");
-# Keep this test last, as it can SEGV
+# Keep these tests last, as they can SEGV
{
local *@;
pass("Localised *@");
eval {1};
pass("Can eval with *@ localised");
-}
+ local @{"nugguton"};
+ local %{"netgonch"};
+ delete $::{$_} for 'nugguton','netgonch';
+}
+pass ('localised arrays and hashes do not crash if glob is deleted');