summaryrefslogtreecommitdiff
path: root/t/op/gv.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-01-17 13:29:56 +0100
committerNicholas Clark <nick@ccl4.org>2012-01-17 13:29:56 +0100
commit33f89799d9328f3d175aa913900d16794119e284 (patch)
treef0d8ebd235826e0778327aa9e1d51b50c3eea8d9 /t/op/gv.t
parentef8156f500dbf5c96a21512c58184fbca79bcfb7 (diff)
downloadperl-33f89799d9328f3d175aa913900d16794119e284.tar.gz
Avoid 'defined(@array) is deprecated' warnings in tests.
Commit 604a99bd464c92d7 enabled the warning for package arrays, but failed to lexically disable the warning for the various tests for the construction. Even though the construction is deprecated, we'd still like to know if the behaviour changes, in case it wasn't intentional.
Diffstat (limited to 't/op/gv.t')
-rw-r--r--t/op/gv.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index 798cc731e3..e2eae33099 100644
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -192,7 +192,10 @@ is (*{*x{GLOB}}, "*main::STDOUT");
my $a = "SYM000";
ok(!defined *{$a});
- ok(!defined @{$a});
+ {
+ no warnings 'deprecated';
+ ok(!defined @{$a});
+ }
ok(!defined *{$a});
{