summaryrefslogtreecommitdiff
path: root/t/op/gv.t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-28 23:41:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-09-29 00:02:41 -0700
commit4e3a83657baae9e603058d075ecfcec051d04c5a (patch)
treef2285bb46dbe1c5fa0b86727719887c78d9289e3 /t/op/gv.t
parent7fdd8d84b57fd74e4b6223233f298d6a853fbaeb (diff)
downloadperl-4e3a83657baae9e603058d075ecfcec051d04c5a.tar.gz
Revert "[perl #77928] Glob slot assignment and set-magic"
This reverts commit cffb36981555111f364a511fb5763f65ea748c0e.
Diffstat (limited to 't/op/gv.t')
-rw-r--r--t/op/gv.t15
1 files changed, 1 insertions, 14 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index b8363d2454..32afdff69b 100644
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -12,7 +12,7 @@ BEGIN {
use warnings;
-plan( tests => 220 );
+plan( tests => 219 );
# type coersion on assignment
$foo = 'foo';
@@ -783,19 +783,6 @@ EOF
}}->($h{k});
}
-# [perl #77928] Glob slot assignment and set-magic
-{
- package Readonly::Alias;
- sub TIESCALAR { bless \(my $x = \pop) }
- sub FETCH { $${$_[0]} }
- sub STORE { die "Assignment to read-only value" }
- package main;
- tie my $alias, "Readonly::Alias", my $var;
- $var = *bength;
- # Now modify a glob slot, not the alias itself:
- ok(scalar eval { *$alias = [] }, 'glob slot assignment skips set-magic');
-}
-
__END__
Perl
Rules