diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-30 16:15:31 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-30 16:15:31 +0000 |
commit | 4c9140ed7ab4bc4874ef56d7df13268d895ad433 (patch) | |
tree | 735b128455bcf751d1772a02d1b270b1791e26ba /t | |
parent | 184f32ecbaf38a072f9e20a9a51f7eed11d1b589 (diff) | |
download | perl-4c9140ed7ab4bc4874ef56d7df13268d895ad433.tar.gz |
Add TODO tests for bug #36434
p4raw-id: //depot/perl@25025
Diffstat (limited to 't')
-rwxr-xr-x | t/op/magic.t | 14 |
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 "# $@"; +} |