summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/magic.t14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/op/magic.t b/t/op/magic.t
index dccb5634d5..154a3cccd4 100755
--- a/t/op/magic.t
+++ b/t/op/magic.t
@@ -36,7 +36,7 @@ sub skip {
return 1;
}
-print "1..54\n";
+print "1..56\n";
$Is_MSWin32 = $^O eq 'MSWin32';
$Is_NetWare = $^O eq 'NetWare';
@@ -426,3 +426,15 @@ ok "@+" eq "10 1 6 10";
my @y = f();
ok( $x eq "@y", "return a magic array ($x) vs (@y)" );
}
+
+# Test for bug [perl #36434]
+{
+ local @ISA;
+ local %ENV;
+ eval { push @ISA, __PACKAGE__ };
+ ok( $@ eq '', 'Push a constant on a magic array', '#36434' );
+ $@ and print "# $@";
+ eval { %ENV = (PATH => __PACKAGE__) };
+ ok( $@ eq '', 'Assign a constant to a magic hash', '#36434' );
+ $@ and print "# $@";
+}